diff options
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([ |