From 114378ded76671c18ef3eda5b7b28f41ffec9887 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Tue, 11 Feb 2025 15:28:50 +0100 Subject: [PATCH] Devicecontroller Bugfix * Admin hat keine Devices mehr gesehen --- application/Device/DeviceController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Device/DeviceController.php b/application/Device/DeviceController.php index ac050b9b0..b55d259a0 100644 --- a/application/Device/DeviceController.php +++ b/application/Device/DeviceController.php @@ -417,9 +417,9 @@ class DeviceController extends mfBaseController private function getDevices() { - - if ($this->allowedPops === null) return []; - + if (!$this->me->is(["Admin"])) { + if ($this->allowedPops === null) return []; + } $devices = DeviceModel::search(['popIds' => $this->allowedPops]); foreach ($devices as $device) {