From 10b37a074c6a48594ccb3e531900657795e1f8df Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 12 Apr 2018 11:00:54 +0200 Subject: [PATCH] Revert "Add language support for user creation in api" --- apps/provisioning_api/lib/Controller/UsersController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 7bbbe55483..420c09dfec 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -206,8 +206,7 @@ class UsersController extends AUserData { string $email = '', array $groups = [], array $subadmin = [], - string $quota = '', - string $language = 'en'): DataResponse { + string $quota = ''): DataResponse { $user = $this->userSession->getUser(); $isAdmin = $this->groupManager->isAdmin($user->getUID()); $subAdminManager = $this->groupManager->getSubAdmin(); @@ -280,10 +279,6 @@ class UsersController extends AUserData { $this->editUser($userid, 'quota', $quota); } - if ($language !== '') { - $this->editUser($userid, 'language', $language); - } - // Send new user mail only if a mail is set if ($email !== '') { $newUser->setEMailAddress($email);