aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-04 12:53:54 +0200
committerDaniel <mail@danielkesselberg.de>2024-09-10 17:04:39 +0200
commit35f266a2a4cffdbe69d18b7890e8d7056a5d8a5b (patch)
tree1e507888840021ed8c6073e910dea2dde10c517c /apps/dav
parent33c9638a141528b44b87d58c10d84a5bfbb4ea59 (diff)
downloadnextcloud-server-35f266a2a4cffdbe69d18b7890e8d7056a5d8a5b.tar.gz
nextcloud-server-35f266a2a4cffdbe69d18b7890e8d7056a5d8a5b.zip
fix(dav): also allow unsharing of circle sharesbackport/47737/stable30
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav')
-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 cbae9ec1a37..f63e4dce454 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);