Merge pull request #14747 from nextcloud/fix/access_list_external_storage
Fix getting the access list on external storage
This commit is contained in:
commit
a5a2c7d818
|
@ -1408,7 +1408,13 @@ class Manager implements IManager {
|
|||
* @return array
|
||||
*/
|
||||
public function getAccessList(\OCP\Files\Node $path, $recursive = true, $currentAccess = false) {
|
||||
$owner = $path->getOwner()->getUID();
|
||||
$owner = $path->getOwner();
|
||||
|
||||
if ($owner === null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
$owner = $owner->getUID();
|
||||
|
||||
if ($currentAccess) {
|
||||
$al = ['users' => [], 'remote' => [], 'public' => false];
|
||||
|
|
Loading…
Reference in New Issue