Merge pull request #14747 from nextcloud/fix/access_list_external_storage

Fix getting the access list on external storage
This commit is contained in:
Morris Jobke 2019-03-19 18:43:23 +01:00 committed by GitHub
commit a5a2c7d818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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];