effectiveMustBeAuthorized property
bool
get
effectiveMustBeAuthorized
Resolves the effective authorization requirement.
Precedence:
- Args mustBeAuthorized
- Args policy
- Route mustBeAuthorized
- Route policy
- Global defaults
Implementation
bool get effectiveMustBeAuthorized {
return mustBeAuthorized ??
policy?.mustBeAuthorized ??
route.mustBeAuthorized ??
route.policy?.mustBeAuthorized ??
RouterBuilderConfig.defaults.mustBeAuthorized ??
true;
}