diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-16 15:30:18 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-12-16 15:30:18 +0100 |
commit | ea7294f7d5b1ca9baf798a5457a97a2d04598a43 (patch) | |
tree | 32becc5ac2ce6d569dde41613faf842b56e5ea0a /apps/workflowengine | |
parent | 3b8fbf129ecb107c6c7a3285fde811b96e0e5fdf (diff) | |
download | nextcloud-server-ea7294f7d5b1ca9baf798a5457a97a2d04598a43.tar.gz nextcloud-server-ea7294f7d5b1ca9baf798a5457a97a2d04598a43.zip |
do not add (user) flows twice
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r-- | apps/workflowengine/lib/Service/RuleMatcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Service/RuleMatcher.php b/apps/workflowengine/lib/Service/RuleMatcher.php index b08bcbbe56b..6186df1d7b9 100644 --- a/apps/workflowengine/lib/Service/RuleMatcher.php +++ b/apps/workflowengine/lib/Service/RuleMatcher.php @@ -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())) { |