Skip to content
Snippets Groups Projects
Commit c38b0da4 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #4065

Closes #4065

Merge request studip/studip!2915
parent b3b65cfb
No related branches found
No related tags found
No related merge requests found
...@@ -30,14 +30,16 @@ class ResourceNavigation extends Navigation ...@@ -30,14 +30,16 @@ class ResourceNavigation extends Navigation
public function initItem() public function initItem()
{ {
parent::initItem();;
$user = User::findCurrent(); $user = User::findCurrent();
if (ResourceManager::userHasGlobalPermission($user, 'user')) { if (ResourceManager::userHasGlobalPermission($user)) {
$this->setURL('dispatch.php/room_management/overview/index'); $this->setURL('dispatch.php/room_management/overview/index');
} else { } else {
$this->setURL('dispatch.php/room_management/overview/rooms'); $this->setURL('dispatch.php/room_management/overview/rooms');
} }
$this->setImage( $this->setImage(
Icon::create('resources', 'navigation', ['title' => _('Raumverwaltung')]) Icon::create('resources', Icon::ROLE_NAVIGATION, ['title' => _('Raumverwaltung')])
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment