diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php index 1f0ab17b5320c05cd52e3cb2568482aa79cf631e..ddd6883ae4dcf180be9b91f9ca154118f4c76cab 100644 --- a/app/controllers/course/timesrooms.php +++ b/app/controllers/course/timesrooms.php @@ -1486,7 +1486,7 @@ class Course_TimesroomsController extends AuthenticatedController Sidebar::Get()->addWidget($widget); - if ($GLOBALS['perm']->have_studip_perm('admin', $this->course_id)) { + if ($GLOBALS['perm']->have_studip_perm('admin', $this->course->id)) { $widget = new CourseManagementSelectWidget(); Sidebar::get()->addWidget($widget); }