mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
feat(roles): masterpieces.approve, its own permission
Approving and removing framed paintings was items.approve, which also judges the items and pictures players make. masterpieces.approve now guards it, on the server (POST /mod/api/masterpiece) and in the mod panel's buttons and its "only ones I approved" filter. Moderators and admins have it by default; seeing the Masterpieces page is still player.view. roles.load, once at start (setting permissionSplitMasterpieces): a role list the admin changed, and a staff member's own grants and denies, that held items.approve are given masterpieces.approve too, so nobody gains or loses anything by the split. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
9720d309fa
commit
9efb2558fc
4 files changed
+41
-8
No files matched your search
@@ -8,6 +8,7 @@ const bans = require("./lib/bans.js");
|
||||
const devices = require("./lib/devices.js");
|
||||
const discord = require("./lib/discord.js");
|
||||
const discordBot = require("./lib/discordbot.js");
|
||||
const roles = require("./lib/roles.js");
|
||||
const chatlog = require("./lib/chatlog.js");
|
||||
const modlog = require("./lib/modlog.js");
|
||||
const retention = require("./lib/retention.js");
|
||||
@@ -54,6 +55,7 @@ const main = async () => {
|
||||
masterpieces.load();
|
||||
retention.load();
|
||||
stats.load(() => world.players().length);
|
||||
roles.load();
|
||||
panel.load();
|
||||
await http.start();
|
||||
await sfs.start(world);
|
||||
|
||||
Reference in new issue
Block a user