aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Calendar.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-06-08 09:21:56 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-06-08 09:21:56 +0200
commit0f1d47cdf3d2923f3ea85d4601e0a31d8e8e4e1e (patch)
treeecc8f6f8c6d86159e44627c9209ab908d521cd66 /apps/dav/lib/CalDAV/Calendar.php
parenta74901fce17da6d88dbb82373fff523b834d692d (diff)
downloadnextcloud-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.php6
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()) {