Skip to main content

privilege_allowed

Function privilege_allowed 

Source
pub fn privilege_allowed(
    owner: &RoleIdentity,
    acl: Option<&[ObjectAclEntry]>,
    grant_option: bool,
    superuser: bool,
    has_role: impl Fn(&RoleIdentity) -> bool,
) -> bool
Expand description

Whether a role holding has_role memberships may use the object, or grant it when grant_option is set.