Skip to content
Snippets Groups Projects
Commit cfe2f76e authored by Elmar Ludwig's avatar Elmar Ludwig Committed by David Siegfried
Browse files

drop special handling of admin navigation, fixes #4491

Closes #4491

Merge request studip/studip!3321
parent d350a170
No related branches found
No related tags found
No related merge requests found
...@@ -137,15 +137,13 @@ class CoreAdmin extends CorePlugin implements StudipModule ...@@ -137,15 +137,13 @@ class CoreAdmin extends CorePlugin implements StudipModule
public function getMetadata() public function getMetadata()
{ {
return [ return [
'displayname' => _('Verwaltung') 'displayname' => _('Verwaltung'),
'summary' => _('Verwaltung der Grunddaten, Zugangsberechtigungen und sonstigen Einstellungen'),
'icon' => Icon::create('admin', Icon::ROLE_INFO),
'icon_clickable' => Icon::create('admin')
]; ];
} }
public function isActivatableForContext(Range $context)
{
return false;
}
public function getInfoTemplate($course_id) public function getInfoTemplate($course_id)
{ {
// TODO: Implement getInfoTemplate() method. // TODO: Implement getInfoTemplate() method.
......
...@@ -60,11 +60,7 @@ class CourseNavigation extends Navigation ...@@ -60,11 +60,7 @@ class CourseNavigation extends Navigation
$where = null; $where = null;
foreach ($this->range->tools as $tool) { foreach ($this->range->tools as $tool) {
if ( if ($found && $tool->metadata['navigation']) {
$found
&& $tool->metadata['navigation']
&& $tool->metadata['navigation'] !== 'admin'
) {
$where = $tool->metadata['navigation']; $where = $tool->metadata['navigation'];
break; break;
} }
...@@ -75,11 +71,6 @@ class CourseNavigation extends Navigation ...@@ -75,11 +71,6 @@ class CourseNavigation extends Navigation
} }
} }
// always insert admin module in first position
if (key($navigations) === 'admin') {
$where = key($this->getSubNavigation());
}
foreach ($navigations as $key => $nav) { foreach ($navigations as $key => $nav) {
if ( if (
$this->range instanceof Institute $this->range instanceof Institute
......
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