Merge pull request #47737 from nextcloud/fix/also-allow-unsharing-for-circles

fix(caldav, carddav): also allow unsharing of circle shares
pull/47860/head
Richard Steinmetz 2024-09-10 07:42:17 +07:00 committed by GitHub
commit 5afe212103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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