aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-04 12:53:54 +0200
committerAnna Larch <anna@nextcloud.com>2024-09-05 21:34:20 +0200
commit17ef20c5f3930ac6e5ca50576c8313e8c4b95c86 (patch)
tree8ca414cb485ae070fbca6ac51c1144a6b81ec0d0 /apps/dav
parent4566cf791d55f1202f4a1888b9cd23a7be0ed2c9 (diff)
downloadnextcloud-server-17ef20c5f3930ac6e5ca50576c8313e8c4b95c86.tar.gz
nextcloud-server-17ef20c5f3930ac6e5ca50576c8313e8c4b95c86.zip
fix(dav): also allow unsharing of circle shares
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 2e1a84b6bc8..aa556f1ed61 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);