aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Settings/Personal.php
blob: 0a70f8dbe755efa93395b3df2e2040221f9ee988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
	}
}