Remove client-side admin permission lock guard
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||
window.CHGRID_WEB_VERSION = "2026.02.27 R300";
|
||||
window.CHGRID_WEB_VERSION = "2026.02.27 R301";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -2825,11 +2825,6 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user