Explorar el Código

fix bug with shared_by for own calendars if shared

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
tags/v12.0.0beta1
Georg Ehrke hace 7 años
padre
commit
896dd76ab5
No account linked to committer's email address

+ 4
- 0
apps/dav/lib/CalDAV/CalDavBackend.php Ver fichero

@@ -279,6 +279,10 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription

$readOnlyPropertyName = '{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}read-only';
while($row = $result->fetch()) {
if ($row['principaluri'] === $principalUri) {
continue;
}

$readOnly = (int) $row['access'] === Backend::ACCESS_READ;
if (isset($calendars[$row['id']])) {
if ($readOnly) {

+ 4
- 0
apps/dav/lib/CardDAV/CardDavBackend.php Ver fichero

@@ -174,6 +174,10 @@ class CardDavBackend implements BackendInterface, SyncSupport {

$readOnlyPropertyName = '{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}read-only';
while($row = $result->fetch()) {
if ($row['principaluri'] === $principalUri) {
continue;
}

$readOnly = (int) $row['access'] === Backend::ACCESS_READ;
if (isset($addressBooks[$row['id']])) {
if ($readOnly) {

Cargando…
Cancelar
Guardar