Merge pull request #14751 from nextcloud/backport/14747/stable15

[stable15] Fix getting the access list on external storage
This commit is contained in:
Christoph Wurst 2019-03-20 09:19:31 +01:00 committed by GitHub
commit fa779fe75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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