diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-13 14:36:47 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-03-21 08:58:41 +0100 |
commit | e4829236cfb5f6a3b76a381a542e43c33aa86452 (patch) | |
tree | b941b55c5f9e60680b4eead93fa8af4bdf3bf450 /apps/workflowengine/lib/Settings | |
parent | 3936a9472a1400852f460ccf3a3289e3f186ded3 (diff) | |
download | nextcloud-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/Settings')
-rw-r--r-- | apps/workflowengine/lib/Settings/ASettings.php | 2 | ||||
-rw-r--r-- | apps/workflowengine/lib/Settings/Personal.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php index a535d21ecdf..6a03625c304 100644 --- a/apps/workflowengine/lib/Settings/ASettings.php +++ b/apps/workflowengine/lib/Settings/ASettings.php @@ -50,7 +50,7 @@ abstract class ASettings implements ISettings { private $eventDispatcher; /** @var Manager */ - private $manager; + protected $manager; /** @var IInitialStateService */ private $initialStateService; diff --git a/apps/workflowengine/lib/Settings/Personal.php b/apps/workflowengine/lib/Settings/Personal.php index 9c23a250355..30f52073a1c 100644 --- a/apps/workflowengine/lib/Settings/Personal.php +++ b/apps/workflowengine/lib/Settings/Personal.php @@ -31,4 +31,8 @@ class Personal extends ASettings { function getScope(): int { return IManager::SCOPE_USER; } + + public function getSection() { + return $this->manager->isUserScopeEnabled() ? 'workflow' : null; + } } |