diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-03-14 19:22:53 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-03-14 20:23:52 +0100 |
| commit | 64c0f1fc4be77854ee1f01514a31d71d6b656d2a (patch) | |
| tree | 712cfc2dbaf3b2e926749b0d80a02cfcb43d0cd7 /lib/models/Course.class.php | |
| parent | ea44b887240c86a07285f0acd598dd42ee494416 (diff) | |
fixed check for user in Course::isCalendarReadable, fixes #3792
Closes #3792
Merge request studip/studip!2664
Diffstat (limited to 'lib/models/Course.class.php')
| -rw-r--r-- | lib/models/Course.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php index 75dad33..3f635d7 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 |
