Skip to main content

is_authorized

Function is_authorized 

Source
pub fn is_authorized(ctx: &ReqCtx, allowed_roles: &[String]) -> bool
Expand description

True if the principal in ctx holds at least one of allowed_roles and has cleared MFA. Always true when auth is not configured.