diff options
Diffstat (limited to 'apps/dav/lib/caldav/calendar.php')
-rw-r--r-- | apps/dav/lib/caldav/calendar.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/apps/dav/lib/caldav/calendar.php b/apps/dav/lib/caldav/calendar.php index b4a47418350..7822c703e91 100644 --- a/apps/dav/lib/caldav/calendar.php +++ b/apps/dav/lib/caldav/calendar.php @@ -58,23 +58,6 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable { function getACL() { $acl = parent::getACL(); - // add the current user - if (isset($this->calendarInfo['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}owner-principal'])) { - $owner = $this->calendarInfo['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}owner-principal']; - $acl[] = [ - 'privilege' => '{DAV:}read', - 'principal' => $owner, - 'protected' => true, - ]; - if ($this->calendarInfo['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}read-only']) { - $acl[] = [ - 'privilege' => '{DAV:}write', - 'principal' => $owner, - 'protected' => true, - ]; - } - } - /** @var CalDavBackend $caldavBackend */ $caldavBackend = $this->caldavBackend; return $caldavBackend->applyShareAcl($this->getResourceId(), $acl); |