Allow to change properties of readonly calendars
This commit is contained in:
parent
27f3dcc682
commit
5af8ebe3bd
|
@ -190,6 +190,14 @@ class Backend {
|
||||||
'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'],
|
'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'],
|
||||||
'protected' => true,
|
'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;
|
return $acl;
|
||||||
|
|
Loading…
Reference in New Issue