# Function permissions::roles::can_assign

> 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

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

```rust
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](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/roles/fn.can_assign.html)
