mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
Staff roles for the 17 October panel: address search, full rooms
- searching players by address and lifting an address ban need address.ban (moderators and above), not only the panel itself - entering a full room goes by the staff role Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
f3983fcf67
commit
ceda20ffc8
4 files changed
+20
-2
No files matched your search
@@ -231,6 +231,9 @@ const run = async () => {
|
||||
assert.ok(!halMe.permissions.includes("player.ban"));
|
||||
assert.strictEqual((await halPage("/mod/api/act", {username: "Pip", action: "ban", hours: 1, reason: "x"})).data.error, "Your role cannot do that.");
|
||||
assert.match((await halPage("/mod/api/act", {username: "Mira", action: "silence", hours: 1})).data.error, /your rank or above/);
|
||||
// searching by address (against ban evasion) is for the roles that ban addresses
|
||||
assert.strictEqual((await halPage("/mod/api/players?by=address&q=127.0.0.")).status, 403);
|
||||
assert.ok(Array.isArray((await modPage("/mod/api/players?by=address&q=127.0.0.")).data.players));
|
||||
// a warning from the panel, and on the player's page
|
||||
assert.match((await modPage("/mod/api/act", {username: "Pip", action: "warn", reason: "scamming", note: "fake trade"})).data.ok, /^Pip warned \(scamming\): warning 1\./);
|
||||
assert.match((await modPage("/mod/api/act", {username: "Pip", action: "warn", reason: "nonsense"})).data.error, /reason/);
|
||||
|
||||
Reference in new issue
Block a user