From ba9525cdea74567e351abf911bb6f75299fb2749 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Mon, 12 Dec 2022 16:30:13 +0100
Subject: [PATCH] fix variable access, re #32

---
 lib/modules/CoreElearningInterface.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/modules/CoreElearningInterface.class.php b/lib/modules/CoreElearningInterface.class.php
index ca3d3be1b6d..7e36a1b7243 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));
         }
 
-- 
GitLab