Added Different view for non-admins
This commit is contained in:
@@ -18,8 +18,7 @@ class DeviceController extends mfBaseController
|
|||||||
$this->allowedPops = array_column(PopModel::getAll(), 'id');
|
$this->allowedPops = array_column(PopModel::getAll(), 'id');
|
||||||
} else {
|
} else {
|
||||||
$networkIds = array_column($this->me->getProperty('my_networks'), 'id');
|
$networkIds = array_column($this->me->getProperty('my_networks'), 'id');
|
||||||
$popIds = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id');
|
$this->allowedPops = array_column(PopNetworkModel::search(['Networks' => $networkIds]), 'pop_id');
|
||||||
$this->allowedPops = array_unique(array_merge([55], $popIds));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user