Function role_rules
pub fn role_rules(role: Role, workspace: &str) -> Vec<Rule>Expand description
The rules a role carries in workspace.
| Role | Grants on the workspace |
|---|---|
| Viewer | Read: Allow |
| Commenter | Read: Allow; comments, reactions: 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::WorkspacePolicy enforces that, since it depends on the
target and not on the tree.