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

Resolve ""Meine Studiengruppen" für Admins sichtbar"

Closes #1097

Merge request studip/studip!653
parent 947e28ee
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class StudygroupController extends AuthenticatedController ...@@ -86,7 +86,7 @@ class StudygroupController extends AuthenticatedController
{ {
$sidebar = Sidebar::get(); $sidebar = Sidebar::get();
if ($GLOBALS['perm']->have_perm('autor')) { if ($GLOBALS['perm']->have_perm('autor') && !$GLOBALS['perm']->have_perm('admin')) {
$actions = new ActionsWidget(); $actions = new ActionsWidget();
$actions->addLink( $actions->addLink(
_('Neue Studiengruppe anlegen'), _('Neue Studiengruppe anlegen'),
......
...@@ -70,7 +70,7 @@ class CommunityNavigation extends Navigation ...@@ -70,7 +70,7 @@ class CommunityNavigation extends Navigation
if (Config::get()->STUDYGROUPS_ENABLE) { if (Config::get()->STUDYGROUPS_ENABLE) {
$navigation = new Navigation(_('Studiengruppen')); $navigation = new Navigation(_('Studiengruppen'));
$navigation->addSubNavigation('browse', new Navigation(_('Studiengruppensuche'), 'dispatch.php/studygroup/browse')); $navigation->addSubNavigation('browse', new Navigation(_('Studiengruppensuche'), 'dispatch.php/studygroup/browse'));
if (Config::get()->MY_COURSES_ENABLE_STUDYGROUPS) { if (Config::get()->MY_COURSES_ENABLE_STUDYGROUPS && !$GLOBALS['perm']->have_perm('admin')) {
$navigation->addSubNavigation('index', new Navigation(_('Meine Studiengruppen'), 'dispatch.php/my_studygroups')); $navigation->addSubNavigation('index', new Navigation(_('Meine Studiengruppen'), 'dispatch.php/my_studygroups'));
} }
$this->addSubNavigation('studygroups', $navigation); $this->addSubNavigation('studygroups', $navigation);
......
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