mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #29420 from nextcloud/backport/29400/stable21
[stable21] fixes an undefined index when getAccessList returns an empty array
This commit is contained in:
commit
b8ab9ffc1e
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