From f57770dfcf8dc6bcfe59bf902b733fe125ecac7f Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 3 Feb 2025 13:31:50 +0000 Subject: [PATCH] Update DeviceController.php --- application/Device/DeviceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Device/DeviceController.php b/application/Device/DeviceController.php index f49e897af..3ca476dfd 100644 --- a/application/Device/DeviceController.php +++ b/application/Device/DeviceController.php @@ -15,7 +15,7 @@ class DeviceController extends mfBaseController } if ($this->me->is(["Admin"])) { - $this->allowedPops = array_column(PopModel::getAll(), 'id'); + $this->allowedPops = null; } else { $networkIds = array_column($this->me->getProperty('my_networks'), 'id'); $this->allowedPops = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id'); @@ -461,4 +461,4 @@ class DeviceController extends mfBaseController return $data ?? []; } -} \ No newline at end of file +}