From 64c0f1fc4be77854ee1f01514a31d71d6b656d2a Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Thu, 14 Mar 2024 19:22:53 +0000 Subject: [PATCH] fixed check for user in Course::isCalendarReadable, fixes #3792 Closes #3792 Merge request studip/studip!2664 --- lib/models/Course.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php index 75dad332fe6..3f635d71a98 100644 --- a/lib/models/Course.class.php +++ b/lib/models/Course.class.php @@ -1096,7 +1096,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe public function isCalendarReadable(?string $user_id = null): bool { if ($user_id === null) { - $user_id = self::findCurrent()->id; + $user_id = User::findCurrent()->id; } //Calendar read permissions are granted for all participants -- GitLab