pub fn can_assign(
actor: &Party,
cp: Permissions,
role: &Role,
) -> Result<(), Denial>Expand description
Whether actor could assign role right now: the check behind invitation default roles
and approval (permissions §4.7, specification §8.6 and §8.9). cp must hold
MANAGE_ROLES unless the actor is the owner.