Merge pull request #18430 from nextcloud/fix/noid/double-flow
Fix/noid/double flow
This commit is contained in:
commit
2df9073025
|
@ -110,7 +110,7 @@ class Application extends \OCP\AppFramework\App {
|
|||
$operation->onEventCompat($eventName, $event, $ruleMatcher);
|
||||
} else {
|
||||
$logger = $this->getContainer()->getServer()->getLogger();
|
||||
$logger->warning(
|
||||
$logger->debug(
|
||||
'Cannot handle event {name} of {event} against entity {entity} and operation {operation}',
|
||||
[
|
||||
'app' => self::APP_ID,
|
||||
|
|
|
@ -124,7 +124,7 @@ class RuleMatcher implements IRuleMatcher {
|
|||
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
||||
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
||||
/** @var ScopeContext $scopeCandidate */
|
||||
if ($scopeCandidate->getScope() !== IManager::SCOPE_USER) {
|
||||
if ($scopeCandidate->getScope() !== IManager::SCOPE_USER || in_array($scopeCandidate, $scopes)) {
|
||||
continue;
|
||||
}
|
||||
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
||||
|
|
Loading…
Reference in New Issue