aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Service/RuleMatcher.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-13 14:36:47 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-03-21 08:58:41 +0100
commite4829236cfb5f6a3b76a381a542e43c33aa86452 (patch)
treeb941b55c5f9e60680b4eead93fa8af4bdf3bf450 /apps/workflowengine/lib/Service/RuleMatcher.php
parent3936a9472a1400852f460ccf3a3289e3f186ded3 (diff)
downloadnextcloud-server-e4829236cfb5f6a3b76a381a542e43c33aa86452.tar.gz
nextcloud-server-e4829236cfb5f6a3b76a381a542e43c33aa86452.zip
Add app config to disable user flows
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/lib/Service/RuleMatcher.php')
-rw-r--r--apps/workflowengine/lib/Service/RuleMatcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Service/RuleMatcher.php b/apps/workflowengine/lib/Service/RuleMatcher.php
index 70c40e1251a..fab2d23aa49 100644
--- a/apps/workflowengine/lib/Service/RuleMatcher.php
+++ b/apps/workflowengine/lib/Service/RuleMatcher.php
@@ -117,7 +117,7 @@ class RuleMatcher implements IRuleMatcher {
public function getMatchingOperations(string $class, bool $returnFirstMatchingOperationOnly = true): array {
$scopes[] = new ScopeContext(IManager::SCOPE_ADMIN);
$user = $this->session->getUser();
- if($user !== null) {
+ if($user !== null && $this->manager->isUserScopeEnabled()) {
$scopes[] = new ScopeContext(IManager::SCOPE_USER, $user->getUID());
}