Skip to main content

is_role_grant

Function is_role_grant 

pub fn is_role_grant(grant: &Grant) -> bool
Expand description

Whether grant is one of a built-in role’s grants: given to the role itself under a role:<role>:<index> id. Those are the code’s, from role_rules; a workspace’s own adjustments to a role are grants under other ids and custom presets assign preset: ids, so neither is one.