diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2025-07-30 09:48:20 +0200 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2025-07-30 07:48:20 +0000 |
| commit | 8b5da1acae37d9bc983394c3f27508c24024d69b (patch) | |
| tree | 93360533b83eeff9f6c78e60cedadeb026bcad8e /app/controllers/course/forum/configs.php | |
| parent | d6ce47b2ea667524acafda4e539a81695158c07d (diff) | |
Resolve "Forum in freien Veranstaltungen sind nicht aufrufbar"issue-5760
Closes #5699
Merge request studip/studip!4371
Diffstat (limited to 'app/controllers/course/forum/configs.php')
| -rw-r--r-- | app/controllers/course/forum/configs.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/course/forum/configs.php b/app/controllers/course/forum/configs.php index 209799f..c99f718 100644 --- a/app/controllers/course/forum/configs.php +++ b/app/controllers/course/forum/configs.php @@ -1,5 +1,4 @@ <?php -require_once 'BaseController.php'; class Course_Forum_ConfigsController extends Forum\BaseController { @@ -7,6 +6,10 @@ class Course_Forum_ConfigsController extends Forum\BaseController { parent::before_filter($action, $args); + if (!$this->user_id) { + throw new LoginException(); + } + if (! $this->is_admin) { throw new AccessDeniedException(); } |
