mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
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
3c76c0ce11
commit
086f41b0bc
1 changed files with 7 additions and 1 deletions
|
|
@ -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 a new issue