mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
48bdd322a2
commit
46e374860b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue