разрешено админу смотреть инфо о контроллерах
This commit is contained in:
1 parent
41f279cfc5
commit
a1cc076f13
1 file changed
+1
-1
+1
-1
@@ -5,7 +5,7 @@
|
||||
header("Location: index.php?"); die();
|
||||
}
|
||||
$deviceId = prepareString($_REQUEST['id']);
|
||||
if(!isHaveAccessToDevice($deviceId, $USER['id'])) {
|
||||
if(!isHaveAccessToDevice($deviceId, $USER['id']) and !CUser::is_admin()) {
|
||||
die('403 - Access denied');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user