diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-16 16:48:25 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-03-16 16:48:25 +0100 |
commit | 46e374860b57d9b0ead7a174dce746586b1eb050 (patch) | |
tree | b799ff637012af9d3fd93cb64ac17d7715c9ca98 /apps/workflowengine/lib | |
parent | 48bdd322a210e5e80ad1bb80ecbe86fad5ba28d1 (diff) | |
download | nextcloud-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.php | 2 |
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); |