Skip to content
Snippets Groups Projects
Commit cd1c3bc4 authored by Marcus's avatar Marcus
Browse files

Hide courseware tab in teachUOS course.

parent 92bcd1d0
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,16 @@ class TeachUOS extends StudipPlugin implements
);
$navigation->addSubNavigation("teachUOS", $teachUOS);
}
// more setup if this plugin is active in this course
$contextId = \Context::getId();
if (\Context::getType() === \Context::COURSE && $this->isActivated($contextId)) {
if (!$GLOBALS['perm']->have_studip_perm('tutor', $contextId)) {
if (Navigation::hasItem('/course/courseware')) {
Navigation::removeItem('/course/courseware');
}
}
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment