Use viewableMonitorIds instead of deprecated MonitorIds
parent
9fbf140fc3
commit
6e8347c693
|
@ -34,7 +34,7 @@ class FramesController extends AppController {
|
|||
$this->Frame->recursive = -1;
|
||||
|
||||
global $user;
|
||||
$allowedMonitors = $user ? preg_split('@,@', $user->MonitorIds(), NULL, PREG_SPLIT_NO_EMPTY) : null;
|
||||
$allowedMonitors = ($user and $user->unviewableMonitorIds()) ? $user->viewableMonitorIds() : null;
|
||||
if ( $allowedMonitors ) {
|
||||
$mon_options = array('Event.MonitorId' => $allowedMonitors);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue