diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2022-12-12 16:30:13 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2022-12-12 16:30:13 +0100 |
| commit | ba9525cdea74567e351abf911bb6f75299fb2749 (patch) | |
| tree | c516c365b549215bc810943fd33da28751f21877 /lib/modules/CoreElearningInterface.class.php | |
| parent | 936d1c00ea05bb0a5c56f441ff2eece6ccefada6 (diff) | |
fix variable access, re #32
Diffstat (limited to 'lib/modules/CoreElearningInterface.class.php')
| -rw-r--r-- | lib/modules/CoreElearningInterface.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modules/CoreElearningInterface.class.php b/lib/modules/CoreElearningInterface.class.php index ca3d3be..7e36a1b 100644 --- a/lib/modules/CoreElearningInterface.class.php +++ b/lib/modules/CoreElearningInterface.class.php @@ -93,7 +93,7 @@ class CoreElearningInterface extends CorePlugin implements StudipModule $navigation->addSubNavigation('show', $elearning_nav); } - if ($GLOBALS['perm']->have_studip_perm('tutor', Context::getId())) { + if ($GLOBALS['perm']->have_studip_perm('tutor', $course_id)) { $navigation->addSubNavigation('edit', new Navigation(_('Lernmodule hinzufügen / entfernen'), 'dispatch.php/course/elearning/edit?seminar_id=' . $course_id)); } |
