Don't allow viewing of monitor setting if monitor permissions are set to View

This commit is contained in:
Isaac Connor 2020-07-03 19:19:13 -04:00
parent 1860ad188b
commit cc0624eb3f
1 changed files with 1 additions and 1 deletions

View File

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