Allow to change properties of readonly calendars

This commit is contained in:
Joas Schilling 2016-02-29 17:17:57 +01:00
parent 6f22784d3d
commit 7a46b30c94
1 changed files with 8 additions and 0 deletions

View File

@ -192,6 +192,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;