mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
feat(modpanel): the mod log as its own page
The admin panel's "What they did" table, in the moderator panel too: the latest 300 entries. A new permission, staff.log, which moderators and admins have by default, guards the page and its route. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
0f367c55b8
commit
8368692b99
3 files changed
+38
-1
No files matched your search
+2
-1
@@ -33,10 +33,11 @@ const PERMISSIONS = {
|
||||
"room.effects": "run temporary room-wide size and colour effects (!roomfx)",
|
||||
"theater.control": "play or stop a YouTube video for everyone in the theatre",
|
||||
"music.upload": "upload MP3s as den music tracks, and delete those uploaded (the Music page)",
|
||||
"staff.log": "read the mod log: what staff did, in the panels and the game (the Mod log page)",
|
||||
};
|
||||
|
||||
const HELPER = ["server.view", "player.view", "staff.list", "player.warn", "player.goto", "chat.silence"];
|
||||
const MODERATOR = [...HELPER, "player.kick", "player.summon", "staff.invisible", "player.ban", "player.names", "address.ban", "items.approve", "items.restrict", "theater.control"];
|
||||
const MODERATOR = [...HELPER, "player.kick", "player.summon", "staff.invisible", "player.ban", "player.names", "address.ban", "items.approve", "items.restrict", "theater.control", "staff.log"];
|
||||
const ADMIN = [...MODERATOR, "items.create", "room.effects", "music.upload"];
|
||||
// a developer makes things, and moderates nobody.
|
||||
const DEVELOPER = ["server.view", "staff.list", "items.create", "room.effects", "theater.control"];
|
||||
|
||||
Reference in new issue
Block a user