From 13c18ec591f7f82356346a1b33022b72b05371b6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 3 Feb 2025 13:59:13 +0100 Subject: [PATCH] Added Different view for non-admins --- application/Device/DeviceController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/Device/DeviceController.php b/application/Device/DeviceController.php index bb4155c99..f49e897af 100644 --- a/application/Device/DeviceController.php +++ b/application/Device/DeviceController.php @@ -18,8 +18,7 @@ class DeviceController extends mfBaseController $this->allowedPops = array_column(PopModel::getAll(), 'id'); } else { $networkIds = array_column($this->me->getProperty('my_networks'), 'id'); - $popIds = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id'); - $this->allowedPops = array_unique(array_merge([55], $popIds)); + $this->allowedPops = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id'); } }