aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Course.class.php
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-03-19 15:28:47 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-03-19 15:28:47 +0000
commit6698033b83d8761de959e877880afc824a86548c (patch)
tree10e7147b8f652945ddfe9bc8e4cb0006792fd383 /lib/models/Course.class.php
parent40f628c185c8eb182cb2fc929f72053b8e35515e (diff)
Course::isCalendarWritable: use user-ID instead of course-ID for call to have_studip_perm, fixes #3849
Closes #3849 Merge request studip/studip!2713
Diffstat (limited to 'lib/models/Course.class.php')
-rw-r--r--lib/models/Course.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php
index 34b7d74..1f60930 100644
--- a/lib/models/Course.class.php
+++ b/lib/models/Course.class.php
@@ -1110,7 +1110,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
public function isCalendarWritable(string $user_id = null): bool
{
if ($user_id === null) {
- $user_id = self::findCurrent()->id;
+ $user_id = User::findCurrent()->id;
}
//Calendar write permissions are granted for all participants