Skip to content
Snippets Groups Projects
Commit 179cd142 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

fixed check for user in Course::isCalendarReadable, fixes #3792

Closes #3792

Merge request !2664
parent 676abf64
No related branches found
No related tags found
No related merge requests found
...@@ -1096,7 +1096,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe ...@@ -1096,7 +1096,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe
public function isCalendarReadable(?string $user_id = null): bool public function isCalendarReadable(?string $user_id = null): bool
{ {
if ($user_id === null) { if ($user_id === null) {
$user_id = self::findCurrent()->id; $user_id = User::findCurrent()->id;
} }
//Calendar read permissions are granted for all participants //Calendar read permissions are granted for all participants
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment