Skip to main content

grant_as

Function grant_as 

Source
pub async fn grant_as(
    read: &Read,
    granter: &Permissions,
    role: RoleId,
    permission: &str,
) -> Result<RoleGrant>
Expand description

Refuses a permission granter does not hold itself, so nobody widens a role past its own.