From 297467f4447f096499228ab448c238641b80d627 Mon Sep 17 00:00:00 2001 From: Maximilian Martin Date: Fri, 20 Jan 2023 11:06:48 +0100 Subject: [PATCH] assign group share value Signed-off-by: Maximilian Martin --- apps/dav/lib/DAV/Sharing/Backend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/DAV/Sharing/Backend.php b/apps/dav/lib/DAV/Sharing/Backend.php index 92971992c2026..5dd17a36cfe88 100644 --- a/apps/dav/lib/DAV/Sharing/Backend.php +++ b/apps/dav/lib/DAV/Sharing/Backend.php @@ -184,7 +184,7 @@ public function getShares(int $resourceId): array { 'status' => 1, 'readOnly' => (int) $row['access'] === self::ACCESS_READ, '{http://owncloud.org/ns}principal' => (string)$row['principaluri'], - '{http://owncloud.org/ns}group-share' => is_null($p) + '{http://owncloud.org/ns}group-share' => isset($p['uri']) ? str_starts_with($p['uri'], 'principals/groups') : false ]; }