diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-13 14:22:04 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-10-19 12:57:35 +0200 |
commit | ef760e0337018c8a45bb380d1a1d50f912ca23ee (patch) | |
tree | ea1f93502826804c837e8c7834396cf40c33e5c7 /apps/theming/lib/Controller/ThemingController.php | |
parent | bbbc1d4a163400eb79cfac3e839769f2e54d7f0a (diff) | |
download | nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.tar.gz nextcloud-server-ef760e0337018c8a45bb380d1a1d50f912ca23ee.zip |
Add admin user customization kill switch
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/theming/lib/Controller/ThemingController.php')
-rw-r--r-- | apps/theming/lib/Controller/ThemingController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/theming/lib/Controller/ThemingController.php b/apps/theming/lib/Controller/ThemingController.php index e671c2d53e8..2cac9a345a4 100644 --- a/apps/theming/lib/Controller/ThemingController.php +++ b/apps/theming/lib/Controller/ThemingController.php @@ -151,6 +151,11 @@ class ThemingController extends Controller { $error = $this->l10n->t('The given color is invalid'); } break; + case 'disable-user-theming': + if ($value !== "yes" && $value !== "no") { + $error = $this->l10n->t('Disable-user-theming should be true or false'); + } + break; } if ($error !== null) { return new DataResponse([ |