Merge pull request #19989 from nextcloud/fix-single-ScopeContext-passed-to-setScopes

Fix single "ScopeContext" passed to "setScopes"
This commit is contained in:
Roeland Jago Douma 2020-03-17 15:08:25 +01:00 committed by GitHub
commit e193e14a08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);