]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix single "ScopeContext" passed to "setScopes" 19989/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 16 Mar 2020 15:48:25 +0000 (16:48 +0100)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 16 Mar 2020 15:48:25 +0000 (16:48 +0100)
"setScopes" expects an array, but a single "ScopeContext" was being
passed instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/workflowengine/lib/Service/RuleMatcher.php

index d73fe752f747a661677bce05ea2a2221b36084c6..99a5db8a9d06bbbc8b11afe7ad38a51f98e1aa95 100644 (file)
@@ -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);