mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fixes an undefined index when getAccessList returns an empty array
- [] is a valid return value that should be honored as having no access Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
a87643a9e0
commit
d3576d32ae
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ class File implements IEntity, IDisplayText, IUrl, IIcon, IContextPortation {
|
|||
return true;
|
||||
}
|
||||
$acl = $this->shareManager->getAccessList($node, true, true);
|
||||
return array_key_exists($uid, $acl['users']);
|
||||
return isset($acl['users']) && array_key_exists($uid, $acl['users']);
|
||||
} catch (NotFoundException $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue