From 5af8ebe3bd32e905f32c88ad2ed301e7d0d9a6a1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 29 Feb 2016 17:17:57 +0100 Subject: [PATCH] Allow to change properties of readonly calendars --- apps/dav/lib/dav/sharing/backend.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/dav/lib/dav/sharing/backend.php b/apps/dav/lib/dav/sharing/backend.php index 8e2a9307b7..ffc4193e34 100644 --- a/apps/dav/lib/dav/sharing/backend.php +++ b/apps/dav/lib/dav/sharing/backend.php @@ -190,6 +190,14 @@ class Backend { 'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'], 'protected' => true, ]; + } else if ($this->resourceType === 'calendar') { + // Allow changing the properties of read only calendars, + // so users can change the visibility. + $acl[] = [ + 'privilege' => '{DAV:}write-properties', + 'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'], + 'protected' => true, + ]; } } return $acl;