Method HoldsWideningRoleAsync
- Namespace
- MailFathom.Application.Access.Grants
- Assembly
- MailFathom.Application.dll
HoldsWideningRoleAsync(AssignmentPrincipal, CancellationToken)
Reads whether any role a principal's assignments give lists a pattern, so what the principal holds widens on upgrade.
Task<bool> HoldsWideningRoleAsync(AssignmentPrincipal principal, CancellationToken cancellationToken)
Parameters
principalAssignmentPrincipalA user, read through every assignment ReadGrantOfAsync(UserId, CancellationToken) reads, or a group, read through every assignment naming it.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<bool>
true when one of those roles satisfies WidensOnUpgrade, a pattern reaching nothing in this build included.
Exceptions
- ArgumentNullException
Thrown when
principalis null.