Merge pull request #19989 from nextcloud/fix-single-ScopeContext-passed-to-setScopes
Fix single "ScopeContext" passed to "setScopes"
This commit is contained in:
commit
e193e14a08
|
@ -143,7 +143,7 @@ class RuleMatcher implements IRuleMatcher {
|
||||||
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
||||||
$ctx = new LogContext();
|
$ctx = new LogContext();
|
||||||
$ctx
|
$ctx
|
||||||
->setScopes($scopeCandidate)
|
->setScopes([$scopeCandidate])
|
||||||
->setEntity($this->entity)
|
->setEntity($this->entity)
|
||||||
->setOperation($this->operation);
|
->setOperation($this->operation);
|
||||||
$this->logger->logScopeExpansion($ctx);
|
$this->logger->logScopeExpansion($ctx);
|
||||||
|
|
Loading…
Reference in New Issue