Browse Source
Merge pull request #29400 from nextcloud/fix/noid/undef-index-error
fixes an undefined index when getAccessList returns an empty array
pull/28389/head
Julius Härtl
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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; |
|
|
|
} |
|
|
|