Skip to content

Commit ab74be8

Browse files
committed
assign group share value
Signed-off-by: Maximilian Martin <maximilian_martin@gmx.de>
1 parent d228951 commit ab74be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/DAV/Sharing/Backend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function getShares($resourceId) {
206206
'status' => 1,
207207
'readOnly' => (int) $row['access'] === self::ACCESS_READ,
208208
'{http://owncloud.org/ns}principal' => $row['principaluri'],
209-
'{http://owncloud.org/ns}group-share' => is_null($p)
209+
'{http://owncloud.org/ns}group-share' => isset($p['uri']) ? str_starts_with($p['uri'], 'principals/groups') : false
210210
];
211211
}
212212

0 commit comments

Comments
 (0)