Method RequirePermissionOverTheDeployment
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
RequirePermissionOverTheDeployment(MailFathomPermission)
Requires one named capability over the whole deployment, for an act only that scope admits reached through an operation that otherwise names a target.
public void RequirePermissionOverTheDeployment(MailFathomPermission permission)
Parameters
permissionMailFathomPermissionThe capability the act is published under.
Remarks
Recording a user or a group into no organization, moving a user out of every organization, and giving a role at the deployment scope are such acts. Ask this before anything the request names is read, never after: the mark tells a boundary the refusal is the same whatever the request names, which is what lets it say the caller holds the permission only below the deployment.
Exceptions
- ArgumentException
Thrown when
permissionnames no published capability.- PrincipalNotAuthorizedException
Thrown as RequirePermission(MailFathomPermission) throws, and marked RefusedForTheDeploymentAlone.