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 19:22:53 +0000 |
| commit | 179cd1427d3b263fe8c592694837154baade967c (patch) | |
| tree | 26dd899deb6d146e370448636f70770e11d3e6be /lib/models/Course.class.php | |
| parent | 676abf645a0b1327d9c31032bf402235124d146c (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 98f2fec..34b7d74 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 |
