diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/course/courseware.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/course/courseware.php b/app/controllers/course/courseware.php index f0b873a..897a103 100644 --- a/app/controllers/course/courseware.php +++ b/app/controllers/course/courseware.php @@ -42,6 +42,12 @@ class Course_CoursewareController extends CoursewareController 'adminPerm' => \Feedback::hasAdminPerm(Context::getId()), 'createPerm' => \Feedback::hasCreatePerm(Context::getId()), ]); + + $this->CoursePerms = json_encode([ + 'dozent' => $GLOBALS['perm']->have_studip_perm('dozent', Context::getId()), + 'tutor' => $GLOBALS['perm']->have_studip_perm('tutor', Context::getId()), + 'autor' => $GLOBALS['perm']->have_studip_perm('autor', Context::getId()), + ]); } public function index_action(): void |
