From 6e8347c693859acec370a7f4e4d489c282c2f6d3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 12 May 2023 08:59:36 -0400 Subject: [PATCH] Use viewableMonitorIds instead of deprecated MonitorIds --- web/api/app/Controller/FramesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {