do not add (user) flows twice
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
3b8fbf129e
commit
ea7294f7d5
|
@ -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