Skip to content
Snippets Groups Projects
Commit 46e37486 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix single "ScopeContext" passed to "setScopes"


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

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 48bdd322
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ class RuleMatcher implements IRuleMatcher { ...@@ -143,7 +143,7 @@ class RuleMatcher implements IRuleMatcher {
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) { if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
$ctx = new LogContext(); $ctx = new LogContext();
$ctx $ctx
->setScopes($scopeCandidate) ->setScopes([$scopeCandidate])
->setEntity($this->entity) ->setEntity($this->entity)
->setOperation($this->operation); ->setOperation($this->operation);
$this->logger->logScopeExpansion($ctx); $this->logger->logScopeExpansion($ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment