fix(dav): also allow unsharing of circle shares

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch 2024-09-04 12:53:54 +02:00 committed by Daniel
parent 33c9638a14
commit 35f266a2a4

View file

@ -138,7 +138,7 @@ abstract class Backend {
'status' => 1,
'readOnly' => (int) $row['access'] === Backend::ACCESS_READ,
'{http://owncloud.org/ns}principal' => (string)$row['principaluri'],
'{http://owncloud.org/ns}group-share' => isset($p['uri']) && str_starts_with($p['uri'], 'principals/groups')
'{http://owncloud.org/ns}group-share' => isset($p['uri']) && (str_starts_with($p['uri'], 'principals/groups') || str_starts_with($p['uri'], 'principals/circles'))
];
}
$this->shareCache->set((string)$resourceId, $shares);