Fix getting the access list on external storage
If a file is on external storage there is no owner. WHich means we can't check. So just return an empty array then. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ff6f105ea6
commit
230dc505a1
|
@ -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