Przeglądaj źródła

Allow to change properties of readonly calendars

tags/v9.1.0beta1
Joas Schilling 8 lat temu
rodzic
commit
7a46b30c94
1 zmienionych plików z 8 dodań i 0 usunięć
  1. 8
    0
      apps/dav/lib/dav/sharing/backend.php

+ 8
- 0
apps/dav/lib/dav/sharing/backend.php Wyświetl plik

@@ -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;

Ładowanie…
Anuluj
Zapisz