Skip to content
Snippets Groups Projects
Commit de66a942 authored by Thomas Hackl's avatar Thomas Hackl
Browse files

range and sem_tree admin is now only for roots, fixes #2917

parent 59c9c68a
No related branches found
No related tags found
No related merge requests found
......@@ -90,11 +90,8 @@ class AdminNavigation extends Navigation
$this->addSubNavigation('institute', $navigation);
$navigation = new Navigation(_('Standort'));
if ($perm->have_perm(Config::get()->RANGE_TREE_ADMIN_PERM ? Config::get()->RANGE_TREE_ADMIN_PERM : 'admin')) {
if ($perm->have_perm('root')) {
$navigation->addSubNavigation('range_tree', new Navigation(_('Einrichtungshierarchie'), 'dispatch.php/admin/tree/rangetree'));
}
if ($perm->have_perm(Config::get()->SEM_TREE_ADMIN_PERM ? Config::get()->SEM_TREE_ADMIN_PERM : 'admin') && $perm->is_fak_admin()) {
$navigation->addSubNavigation('sem_tree', new Navigation(_('Veranstaltungshierarchie'), 'dispatch.php/admin/tree/semtree'));
}
......
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