diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2021-10-24 01:25:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 01:25:57 +0200 |
commit | 7fe15c719ccd73ff18a01eb1e7b57bcdee27618b (patch) | |
tree | 21795a6de95f8a33157c912823bbbf4f26f29770 /apps | |
parent | 629225c30a4335e95c4199b00846eb2e26ffab5f (diff) | |
parent | 5145675d43082d18b790eda1a85d666276ab071b (diff) | |
download | nextcloud-server-7fe15c719ccd73ff18a01eb1e7b57bcdee27618b.tar.gz nextcloud-server-7fe15c719ccd73ff18a01eb1e7b57bcdee27618b.zip |
Merge pull request #29419 from nextcloud/backport/29400/stable22
[stable22] fixes an undefined index when getAccessList returns an empty array
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/Entity/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php index 2c8701f0378..3f09fcd24a1 100644 --- a/apps/workflowengine/lib/Entity/File.php +++ b/apps/workflowengine/lib/Entity/File.php @@ -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; } |