mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
27f3a8f152
commit
f9441c91d5
@ -413,9 +413,14 @@ class Navigation implements ArrayAccess, Countable, IteratorAggregate
|
||||
*/
|
||||
public function load($type)
|
||||
{
|
||||
// Shareables
|
||||
$this->merge(Icinga::app()->getSharedNavigation($type));
|
||||
|
||||
// User Preferences
|
||||
$user = Auth::getInstance()->getUser();
|
||||
$this->merge($user->getNavigation($type));
|
||||
|
||||
// Modules
|
||||
$moduleManager = Icinga::app()->getModuleManager();
|
||||
foreach ($moduleManager->getLoadedModules() as $module) {
|
||||
if ($user->can($moduleManager::MODULE_PERMISSION_NS . $module->getName())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user