Update DeviceController.php
This commit is contained in:
@@ -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 ?? [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user