Skip to content

Commit fa779fe

Browse files
Merge pull request #14751 from nextcloud/backport/14747/stable15
[stable15] Fix getting the access list on external storage
2 parents ce619b0 + 086f41b commit fa779fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,13 @@ public function userDeletedFromGroup($uid, $gid) {
14081408
* @return array
14091409
*/
14101410
public function getAccessList(\OCP\Files\Node $path, $recursive = true, $currentAccess = false) {
1411-
$owner = $path->getOwner()->getUID();
1411+
$owner = $path->getOwner();
1412+
1413+
if ($owner === null) {
1414+
return [];
1415+
}
1416+
1417+
$owner = $owner->getUID();
14121418

14131419
if ($currentAccess) {
14141420
$al = ['users' => [], 'remote' => [], 'public' => false];

0 commit comments

Comments
 (0)