Table of Contents

Method Holds

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

Holds(MailFathomPermission)

Reports whether this principal was granted one named capability, over the whole deployment where the capability reads a scope at all.

public bool Holds(MailFathomPermission permission)

Parameters

permission MailFathomPermission

The capability being asked about.

Returns

bool

true when the principal holds it.

Remarks

That a kind other than a caller never holds one is a property of how a principal is composed rather than a case decided here.

A mail permission is held at whichever scope it was granted, because its scope is never read: it reaches its holder's own mail and nothing else — so a principal acting for no user holds none, having no mail of its own for one to reach. That is what lets the administrator's grant carry the mail names their roles list, which a credential written on the administrative surface is bounded by, without any of them becoming something the administrative surface performs. An administrative permission is held for this question only over the whole deployment, because the question names no target and an operation naming none is the deployment's. A check that does name a target asks HoldsOver(MailFathomPermission, AdministrativeTarget) instead, so a grant held over one organization admits nothing until an operation asks about something inside it.