Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-10-22 23:42:25 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-10-22 23:42:25 +0300
commit7d7ef1d2e68310cc8e0988a926406cddd241c257 (patch)
tree106bb17d02c8d1e351fbacdeea4f493021020c8d /apps
parent1895a6dc573cdb46cfa1987e25d45781623fdb7d (diff)
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>
Diffstat (limited to 'apps')
-rw-r--r--apps/workflowengine/lib/Entity/File.php2
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;
}