Release v5.3.6: Strict RBAC e separazione permessi Admin/Nodi

This commit is contained in:
2026-11-03 19:45:38 +01:00
parent e199fb8f29
commit 019e518534
3 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ async function saveSettings() {
function triggerGlobalEmergency() {
const role = me.role || '';
const allowedList = String(me.allowed_nodes || '').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
const hasAll = role === 'admin' || allowedList.includes('all');
const hasAll = allowedList.includes('all');
let uniqueProfiles = {};
for (const id in globalHealthData) {
@@ -259,7 +259,7 @@ function sendGlobalAction(action) {
document.getElementById('override-modal').style.display = 'none';
const role = me.role || '';
const allowedList = String(me.allowed_nodes || '').split(',').map(x => x.trim().toLowerCase()).filter(Boolean);
const hasAll = role === 'admin' || allowedList.includes('all');
const hasAll = allowedList.includes('all');
const confirmMsg = hasAll
? t('promptOvrConfirm')