Use viewableMonitorIds instead of deprecated MonitorIds

pull/3706/head
Isaac Connor 2023-05-12 08:59:36 -04:00
parent 9fbf140fc3
commit 6e8347c693
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class FramesController extends AppController {
$this->Frame->recursive = -1; $this->Frame->recursive = -1;
global $user; global $user;
$allowedMonitors = $user ? preg_split('@,@', $user->MonitorIds(), NULL, PREG_SPLIT_NO_EMPTY) : null; $allowedMonitors = ($user and $user->unviewableMonitorIds()) ? $user->viewableMonitorIds() : null;
if ( $allowedMonitors ) { if ( $allowedMonitors ) {
$mon_options = array('Event.MonitorId' => $allowedMonitors); $mon_options = array('Event.MonitorId' => $allowedMonitors);
} else { } else {