aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2024-09-10 07:42:17 +0200
committerGitHub <noreply@github.com>2024-09-10 07:42:17 +0200
commit5afe21210344e7596286797a005026188c696288 (patch)
tree1d419cdad46ec1314b98e3a458835d55af66e96b
parent2a663b28bea4e5fa6ae56e603b3a08c1c13b31a8 (diff)
parent17ef20c5f3930ac6e5ca50576c8313e8c4b95c86 (diff)
downloadnextcloud-server-5afe21210344e7596286797a005026188c696288.tar.gz
nextcloud-server-5afe21210344e7596286797a005026188c696288.zip
Merge pull request #47737 from nextcloud/fix/also-allow-unsharing-for-circles
fix(caldav, carddav): also allow unsharing of circle shares
-rw-r--r--apps/dav/lib/DAV/Sharing/Backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php
index 3dac1cf18be..5630336df42 100644
--- a/apps/dav/lib/DAV/Sharing/Backend.php
+++ b/apps/dav/lib/DAV/Sharing/Backend.php
@@ -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);