Skip to main content

role_rules

Function role_rules 

pub fn role_rules(role: Role, room: &str) -> Vec<Rule>
Expand description

The rules a role carries in room.

RoleGrants on the room
ViewerRead: Allow
CommenterRead: Allow; comments: Allow (Undoable)
EditorRead, Undoable: Allow; Outside: Ask; governance, moderation: Deny
Moderatoras Editor; moderation: Allow; remove-member, ban, unban, pause-bot, resume-bot: Allow
Ownereverything: Allow

A Moderator’s membership actions reach only members ranked below Moderator; crate::RoomPolicy enforces that, since it depends on the target and not on the tree.