effectiveMustBeAuthorized property

bool get effectiveMustBeAuthorized

Resolves the effective authorization requirement.

Precedence:

  1. Args mustBeAuthorized
  2. Args policy
  3. Route mustBeAuthorized
  4. Route policy
  5. Global defaults

Implementation

bool get effectiveMustBeAuthorized {
  return mustBeAuthorized ??
      policy?.mustBeAuthorized ??
      route.mustBeAuthorized ??
      route.policy?.mustBeAuthorized ??
      RouterBuilderConfig.defaults.mustBeAuthorized ??
      true;
}