Function permissions::roles::role_reorder
zaun_community_protocol::permissions::roles::role_reorder · Function
pub fn role_reorder(actor: &Party, roles: &[Role], moves: &[(RoleId, u32)]) -> Result<(), Refusal>role.reorder: roles is the community’s role table, moves the request’s
(role_id, new_position) pairs. Every role whose position changes must be below the
actor before and after; positions must stay unique and non-zero; @everyone cannot be
listed. The owner may move any other role.