Function role_rules
pub fn role_rules(role: Role, room: &str) -> Vec<Rule>Expand description
The rules a role carries in room.
| Role | Grants on the room |
|---|---|
| Viewer | Read: Allow |
| Commenter | Read: Allow; comments: Allow (Undoable) |
| Editor | Read, Undoable: Allow; Outside: Ask; governance, moderation: Deny |
| Moderator | as Editor; moderation: Allow; remove-member, ban, unban, pause-bot, resume-bot: Allow |
| Owner | everything: 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.