aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Settings/Personal.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Settings/Personal.php')
-rw-r--r--apps/workflowengine/lib/Settings/Personal.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Settings/Personal.php b/apps/workflowengine/lib/Settings/Personal.php
new file mode 100644
index 00000000000..0a70f8dbe75
--- /dev/null
+++ b/apps/workflowengine/lib/Settings/Personal.php
@@ -0,0 +1,21 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OCA\WorkflowEngine\Settings;
+
+use OCP\WorkflowEngine\IManager;
+
+class Personal extends ASettings {
+ public function getScope(): int {
+ return IManager::SCOPE_USER;
+ }
+
+ public function getSection(): ?string {
+ return $this->manager->isUserScopeEnabled() ? 'workflow' : null;
+ }
+}