From 18790a01f61b53e86c9167479f82a205e712d1d4 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 10 May 2023 11:03:39 -0400 Subject: [PATCH] Use unviewableMonitorIds fixing invalid user of u->MonitorIds --- web/skins/classic/views/monitor.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index a9f0ad6c4..4bf6a6c70 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -545,7 +545,6 @@ switch ($name) {
  • translate('None')); foreach (ZM\User::find() as $u) { - if ($u->MonitorIds() and (!$monitor->Id() or in_array($monitor->Id(), explode(',', $u->MonitorIds())))) + if (!$monitor->Id() or in_array($monitor->Id(), $u->unviewableMonitorIds())) continue; $users[$u->Id()] = $u->Username(); }