summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib/Controller
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-07-13 10:34:27 +0200
committerGeorg Ehrke <developer@georgehrke.com>2018-06-27 13:19:23 +0200
commitabab7eb7f071282a4a3fa839dcc6f61ac4632f6b (patch)
tree6f217feea2391c44cd959b6087e3ff0a697dc5ec /apps/provisioning_api/lib/Controller
parent4a9f8623b50ab0ba6a7fd411c0750a6bd5f63c14 (diff)
downloadnextcloud-server-abab7eb7f071282a4a3fa839dcc6f61ac4632f6b.tar.gz
nextcloud-server-abab7eb7f071282a4a3fa839dcc6f61ac4632f6b.zip
handle config.php values
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/provisioning_api/lib/Controller')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php
index 32967742bd2..8b39de29086 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -442,6 +442,10 @@ class UsersController extends AUserData {
if ($this->config->getSystemValue('force_language', false) === false ||
$this->groupManager->isAdmin($currentLoggedInUser->getUID())) {
$permittedFields[] = 'language';
+ }
+
+ if ($this->config->getSystemValue('force_locale', false) === false ||
+ $this->groupManager->isAdmin($currentLoggedInUser->getUID())) {
$permittedFields[] = 'locale';
}