Fix permissions to view monitors for sub accounts+
parent
7948ef9089
commit
c95f34d7da
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue