Don't allow viewing of monitor setting if monitor permissions are set to View
This commit is contained in:
parent
1860ad188b
commit
cc0624eb3f
|
@ -21,7 +21,7 @@
|
|||
require_once('includes/Server.php');
|
||||
require_once('includes/Storage.php');
|
||||
|
||||
if ( !canView('Monitors') ) {
|
||||
if ( !canEdit('Monitors', empty($_REQUEST['mid'])?0:$_REQUEST['mid']) ) {
|
||||
$view = 'error';
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue