Skip to main content

is_admin

Function is_admin 

Source
pub fn is_admin(auth: &AuthCtx) -> bool
Expand description

True iff auth carries the site-admin (SADM) role.

Single source of truth for the role-name string; callers must not compare role strings inline.