Devicecontroller Bugfix
* Admin hat keine Devices mehr gesehen
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user