Lock admin role permissions on server and client

This commit is contained in:
Jage9
2026-02-27 19:36:09 -05:00
parent 240d2ecfe8
commit 37419a5592
4 changed files with 17 additions and 1 deletions

View File

@@ -2825,6 +2825,11 @@ function handleAdminRolePermissionListModeInput(code: string, key: string): void
audio.sfxUiBlip();
return;
}
if (role.name === 'admin') {
updateStatus('Admin role permissions are locked on.');
audio.sfxUiCancel();
return;
}
const nextPermissions = new Set(role.permissions);
if (nextPermissions.has(value)) {
nextPermissions.delete(value);