diff options
author | nfebe <fenn25.fn@gmail.com> | 2025-01-06 20:06:21 +0100 |
---|---|---|
committer | nfebe <fenn25.fn@gmail.com> | 2025-01-22 20:07:25 +0100 |
commit | f7c46b68094eb2c33d3f56ec79aa09e197b017ac (patch) | |
tree | bfac3a03211b9bbacb6a9e254aaf53d5aa942187 /apps/settings | |
parent | b4e3eff078ac40ab1383cc8a1be7588bde07869a (diff) | |
download | nextcloud-server-f7c46b68094eb2c33d3f56ec79aa09e197b017ac.tar.gz nextcloud-server-f7c46b68094eb2c33d3f56ec79aa09e197b017ac.zip |
feat(systemtags): toggle for system tag creation in admin settings
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Settings/Admin/Server.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/settings/lib/Settings/Admin/Server.php b/apps/settings/lib/Settings/Admin/Server.php index 0f253ddf6b1..8071d812076 100644 --- a/apps/settings/lib/Settings/Admin/Server.php +++ b/apps/settings/lib/Settings/Admin/Server.php @@ -1,4 +1,5 @@ <?php + /** * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later @@ -53,6 +54,9 @@ class Server implements IDelegatedSettings { $this->initialStateService->provideInitialState('profileEnabledGlobally', $this->profileManager->isProfileEnabled()); $this->initialStateService->provideInitialState('profileEnabledByDefault', $this->isProfileEnabledByDefault($this->config)); + // Basic settings + $this->initialStateService->provideInitialState('restrictSystemTagsCreationToAdmin', $this->appConfig->getValueString('systemtags', 'restrict_creation_to_admin', 'true')); + return new TemplateResponse('settings', 'settings/admin/server', [ 'profileEnabledGlobally' => $this->profileManager->isProfileEnabled(), ], ''); |