test(socket): update permission test for admin-only lock toggle

batch-toggle-locked is now admin-only, so write role should be denied.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
waleed
2026-01-31 20:49:07 -08:00
parent 3664a56fca
commit 3fbcfc662c

View File

@@ -217,7 +217,7 @@ describe('checkRolePermission', () => {
{
operation: 'batch-toggle-locked',
adminAllowed: true,
writeAllowed: true,
writeAllowed: false, // Admin-only operation
readAllowed: false,
},
{