Table of Contents

Method WidensOnUpgradeAsync

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

WidensOnUpgradeAsync(UserId, CancellationToken)

Reports whether what one user holds widens on upgrade, because a role they were given lists a pattern.

public Task<bool> WidensOnUpgradeAsync(UserId user, CancellationToken cancellationToken)

Parameters

user UserId

The user.

cancellationToken CancellationToken

Cancels the read.

Returns

Task<bool>

true when a role given to them, directly or through a group, lists a pattern.

Remarks

Read from the records each time rather than remembered: only a write bounded by it asks, and a write decides on what is stored now.

Exceptions

ArgumentException

Thrown when user names nobody.