diff options
author | Georg Ehrke <developer@georgehrke.com> | 2017-06-08 09:21:56 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2017-06-08 09:21:56 +0200 |
commit | 0f1d47cdf3d2923f3ea85d4601e0a31d8e8e4e1e (patch) | |
tree | ecc8f6f8c6d86159e44627c9209ab908d521cd66 /apps/dav/lib/CalDAV/Calendar.php | |
parent | a74901fce17da6d88dbb82373fff523b834d692d (diff) | |
download | nextcloud-server-0f1d47cdf3d2923f3ea85d4601e0a31d8e8e4e1e.tar.gz nextcloud-server-0f1d47cdf3d2923f3ea85d4601e0a31d8e8e4e1e.zip |
allow users to send PropPatch request when calendar is group-shared with them
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CalDAV/Calendar.php')
-rw-r--r-- | apps/dav/lib/CalDAV/Calendar.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/Calendar.php b/apps/dav/lib/CalDAV/Calendar.php index 9c56398b14c..9f4e30710ec 100644 --- a/apps/dav/lib/CalDAV/Calendar.php +++ b/apps/dav/lib/CalDAV/Calendar.php @@ -135,6 +135,12 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { 'principal' => parent::getOwner(), 'protected' => true, ]; + } else { + $acl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => parent::getOwner(), + 'protected' => true, + ]; } } if ($this->isPublic()) { |