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
parent
commit
2b651cc022
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/workflowengine/lib/Entity/File.php

2
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;
}

Loading…
Cancel
Save