diff options
author | Joas Schilling <coding@schilljs.com> | 2024-12-09 11:33:12 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-12-11 08:39:09 +0100 |
commit | 4fd84e47bf01958058f6e26b5655fa3671e15f67 (patch) | |
tree | c0303f914c33336ab0977f3d585c171b976e79a8 /apps/dav/lib | |
parent | 6f3ee6b09a27cedf49c56b981d6d21fd852b4838 (diff) | |
download | nextcloud-server-4fd84e47bf01958058f6e26b5655fa3671e15f67.tar.gz nextcloud-server-4fd84e47bf01958058f6e26b5655fa3671e15f67.zip |
fix(calendar): Fix getting the permissions of the user
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CalDAV/CalendarImpl.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarImpl.php b/apps/dav/lib/CalDAV/CalendarImpl.php index 919b08eefce..b3062f005ee 100644 --- a/apps/dav/lib/CalDAV/CalendarImpl.php +++ b/apps/dav/lib/CalDAV/CalendarImpl.php @@ -110,6 +110,10 @@ class CalendarImpl implements ICreateFromString, IHandleImipMessage { $permissions = $this->calendar->getACL(); $result = 0; foreach ($permissions as $permission) { + if ($this->calendarInfo['principaluri'] !== $permission['principal']) { + continue; + } + switch ($permission['privilege']) { case '{DAV:}read': $result |= Constants::PERMISSION_READ; @@ -133,7 +137,7 @@ class CalendarImpl implements ICreateFromString, IHandleImipMessage { public function isWritable(): bool { return $this->calendar->canWrite(); } - + /** * @since 26.0.0 */ |