Update DeviceController.php

This commit is contained in:
Luca Haid
2025-02-03 13:31:50 +00:00
parent 14e5d16018
commit f57770dfcf
+1 -1
View File
@@ -15,7 +15,7 @@ class DeviceController extends mfBaseController
} }
if ($this->me->is(["Admin"])) { if ($this->me->is(["Admin"])) {
$this->allowedPops = array_column(PopModel::getAll(), 'id'); $this->allowedPops = null;
} else { } else {
$networkIds = array_column($this->me->getProperty('my_networks'), 'id'); $networkIds = array_column($this->me->getProperty('my_networks'), 'id');
$this->allowedPops = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id'); $this->allowedPops = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id');