From 5161c2610f0894ec81625815c638bb213e63bed7 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 27 Jun 2024 14:13:02 +0000 Subject: [PATCH] ensure a session is available when displaying courseware public links, fixes #4351 Closes #4351 Merge request studip/studip!3152 --- app/controllers/courseware/public.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/courseware/public.php b/app/controllers/courseware/public.php index a7472ae836c..55cf3f49292 100644 --- a/app/controllers/courseware/public.php +++ b/app/controllers/courseware/public.php @@ -4,6 +4,8 @@ use Courseware\PublicLink; class Courseware_PublicController extends StudipController { + protected $with_session = true; + public function before_filter(&$action, &$args) { parent::before_filter($action, $args); -- GitLab