From c95f34d7da26bb32106ad570842490870a92dc14 Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 9 Aug 2020 19:21:26 -0700 Subject: [PATCH] Fix permissions to view monitors for sub accounts+ --- libs/monitor.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/monitor.js b/libs/monitor.js index e89b37fd..a14d0124 100644 --- a/libs/monitor.js +++ b/libs/monitor.js @@ -1764,10 +1764,8 @@ module.exports = function(s,config,lang){ monitorRestrictions.push(['mid','=',monitorId]) }else if( !monitorId && - permissions.sub && ( - permissions.allmonitors !== '0' || - permissions.monitors.indexOf(monitorId) >- 1 - ) + permissions.sub && + permissions.allmonitors !== '0' ){} return monitorRestrictions }