summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2020-03-16 16:48:25 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-03-17 14:09:58 +0000
commit2106e6ce0491e98e3418466be2050437f0042b00 (patch)
tree7d5cb864b5c1cfc3ac4f8c39e07dea9aa7bd9cc3 /apps/workflowengine
parentd5a850735936c06c4818bbe762398137d7fae6cf (diff)
downloadnextcloud-server-2106e6ce0491e98e3418466be2050437f0042b00.tar.gz
nextcloud-server-2106e6ce0491e98e3418466be2050437f0042b00.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')
-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);