Skip to content

Commit 0198174

Browse files
committed
fixup! fix(caldav): prevent unshare entry creation for owner unsharing
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 27fe1bb commit 0198174

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@
8888
* Code is heavily inspired by https://github.com/fruux/sabre-dav/blob/master/lib/CalDAV/Backend/PDO.php
8989
*
9090
* @package OCA\DAV\CalDAV
91+
*
92+
* @psalm-type CalendarInfo = array{
93+
* id: int,
94+
* uri: string,
95+
* principaluri: string,
96+
* '{http://calendarserver.org/ns/}getctag': string,
97+
* '{http://sabredav.org/ns}sync-token': int,
98+
* '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set': SupportedCalendarComponentSet,
99+
* '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp': ScheduleCalendarTransp,
100+
* '{DAV:}displayname': string,
101+
* '{urn:ietf:params:xml:ns:caldav}calendar-timezone': ?string }
102+
* }
91103
*/
92104
class CalDavBackend extends AbstractBackend implements SyncSupport, SubscriptionSupport, SchedulingSupport {
93105
use TTransactional;
@@ -649,7 +661,8 @@ public function getCalendarByUri($principal, $uri) {
649661
}
650662

651663
/**
652-
* @return array{id: int, uri: string, '{http://calendarserver.org/ns/}getctag': string, '{http://sabredav.org/ns}sync-token': int, '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set': SupportedCalendarComponentSet, '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp': ScheduleCalendarTransp, '{urn:ietf:params:xml:ns:caldav}calendar-timezone': ?string }|null
664+
* @psalm-return CalendarInfo|null
665+
* @return array|null
653666
*/
654667
public function getCalendarById(int $calendarId): ?array {
655668
$fields = array_column($this->propertyMap, 0);

0 commit comments

Comments
 (0)