Table of Contents

Method PermitsAtAnyScope

Namespace
MailFathom.Application.Access
Assembly
MailFathom.Application.dll

PermitsAtAnyScope(MailFathomPermission)

Answers whether the caller holds one named capability at any scope, for a transport that leaves the target to the operation.

public bool PermitsAtAnyScope(MailFathomPermission permission)

Parameters

permission MailFathomPermission

The capability being asked about.

Returns

bool

true when an admitted caller holding that capability, however narrowly, is what reached this work.

Remarks

A route naming a target cannot know before the operation reads it whether a scope narrower than the deployment covers it, so the cheap refusal it can make is of a caller holding the permission nowhere at all. The operation behind it asks RequirePermissionOverAsync(MailFathomPermission, MailAccountId, CancellationToken) or its user form, which is the authority.