Skip to content

Commit

Permalink
fix(caldav, carddav): also allow unsharing of circle shares
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Larch <anna@nextcloud.com>
  • Loading branch information
miaulalala committed Sep 4, 2024
1 parent 3973a8f commit 341ee6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/DAV/Sharing/Backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function getShares(int $resourceId): array {
'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_contains($p['uri'], 'principals/circles'))
];
}
$this->shareCache->set((string)$resourceId, $shares);
Expand Down

0 comments on commit 341ee6b

Please sign in to comment.