diff --git a/web/api/app/Controller/FramesController.php b/web/api/app/Controller/FramesController.php index bed51b7a7..b9374b316 100644 --- a/web/api/app/Controller/FramesController.php +++ b/web/api/app/Controller/FramesController.php @@ -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 {