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);
|
$operation->onEventCompat($eventName, $event, $ruleMatcher);
|
||||||
} else {
|
} else {
|
||||||
$logger = $this->getContainer()->getServer()->getLogger();
|
$logger = $this->getContainer()->getServer()->getLogger();
|
||||||
$logger->warning(
|
$logger->debug(
|
||||||
'Cannot handle event {name} of {event} against entity {entity} and operation {operation}',
|
'Cannot handle event {name} of {event} against entity {entity} and operation {operation}',
|
||||||
[
|
[
|
||||||
'app' => self::APP_ID,
|
'app' => self::APP_ID,
|
||||||
|
|
|
@ -124,7 +124,7 @@ class RuleMatcher implements IRuleMatcher {
|
||||||
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
||||||
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
||||||
/** @var ScopeContext $scopeCandidate */
|
/** @var ScopeContext $scopeCandidate */
|
||||||
if ($scopeCandidate->getScope() !== IManager::SCOPE_USER) {
|
if ($scopeCandidate->getScope() !== IManager::SCOPE_USER || in_array($scopeCandidate, $scopes)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
if ($this->entity->isLegitimatedForUserId($scopeCandidate->getScopeId())) {
|
||||||
|
|
Loading…
Reference in New Issue