Fix single "ScopeContext" passed to "setScopes"

"setScopes" expects an array, but a single "ScopeContext" was being
passed instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
pull/19989/head
Daniel Calviño Sánchez 6 years ago
parent 48bdd322a2
commit 46e374860b
  1. 2
      apps/workflowengine/lib/Service/RuleMatcher.php

@ -143,7 +143,7 @@ class RuleMatcher implements IRuleMatcher {
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
$ctx = new LogContext();
$ctx
->setScopes($scopeCandidate)
->setScopes([$scopeCandidate])
->setEntity($this->entity)
->setOperation($this->operation);
$this->logger->logScopeExpansion($ctx);

Loading…
Cancel
Save