Fix permissions to view monitors for sub accounts+

install-with-shinobicctv-user-instead-of-root
Moe 2020-08-09 19:21:26 -07:00
parent 7948ef9089
commit c95f34d7da
1 changed files with 2 additions and 4 deletions

View File

@ -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
}