Skip to content
Snippets Groups Projects
Commit e5fec07a 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 31fde12b
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,7 @@ class StudygroupController extends AuthenticatedController
{
$sidebar = Sidebar::get();
if ($GLOBALS['perm']->have_perm('autor')) {
if ($GLOBALS['perm']->have_perm('autor') && !$GLOBALS['perm']->have_perm('admin')) {
$actions = new ActionsWidget();
$actions->addLink(
_('Neue Studiengruppe anlegen'),
......
......@@ -70,7 +70,7 @@ class CommunityNavigation extends Navigation
if (Config::get()->STUDYGROUPS_ENABLE) {
$navigation = new Navigation(_('Studiengruppen'));
$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'));
}
$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