summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-03-16 16:48:25 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-03-16 16:48:25 +0100
commit46e374860b57d9b0ead7a174dce746586b1eb050 (patch)
treeb799ff637012af9d3fd93cb64ac17d7715c9ca98 /apps/workflowengine/lib
parent48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff)
downloadnextcloud-server-46e374860b57d9b0ead7a174dce746586b1eb050.tar.gz
nextcloud-server-46e374860b57d9b0ead7a174dce746586b1eb050.zip
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>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/Service/RuleMatcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Service/RuleMatcher.php b/apps/workflowengine/lib/Service/RuleMatcher.php
index d73fe752f74..99a5db8a9d0 100644
--- a/apps/workflowengine/lib/Service/RuleMatcher.php
+++ b/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);