mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge pull request #29419 from nextcloud/backport/29400/stable22
[stable22] fixes an undefined index when getAccessList returns an empty array
This commit is contained in:
commit
7fe15c719c
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,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