Table of Contents

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

principal AssignmentPrincipal

A user, read through every assignment ReadGrantOfAsync(UserId, CancellationToken) reads, or a group, read through every assignment naming it.

cancellationToken CancellationToken

Cancels 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 principal is null.