# Function permissions::roles::role_update

> `role.update`: H4 on the role, H3 on `old XOR new`. `@everyone` may change only its permissions (`other_fields` is true when the body changes anything else).

`zaun_community_protocol::permissions::roles::role_update` · Function

```rust
pub fn role_update(actor: &Party, cp: Permissions, role: &Role, new_permissions: Permissions, other_fields: bool) -> Result<(), Refusal>
```

`role.update`: H4 on the role, H3 on `old XOR new`. `@everyone` may change only its
permissions (`other_fields` is true when the body changes anything else).

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/roles/fn.role_update.html)
