Skip to content

Function permissions::roles::can_assign

zaun_community_protocol::permissions::roles::can_assign · Function

pub fn can_assign(actor: &Party, cp: Permissions, role: &Role) -> Result<(), Denial>

Whether actor could assign role right now: the check behind invitation default roles and approval (permissions the protocol, the protocol). cp must hold MANAGE_ROLES unless the actor is the owner.

Full rustdoc page