Merge pull request #9158 from nextcloud/revert-9144-allow-lang-ocs-api
Revert "Add language support for user creation in api"
This commit is contained in:
commit
e275b9a2cf
|
@ -206,8 +206,7 @@ class UsersController extends AUserData {
|
||||||
string $email = '',
|
string $email = '',
|
||||||
array $groups = [],
|
array $groups = [],
|
||||||
array $subadmin = [],
|
array $subadmin = [],
|
||||||
string $quota = '',
|
string $quota = ''): DataResponse {
|
||||||
string $language = 'en'): DataResponse {
|
|
||||||
$user = $this->userSession->getUser();
|
$user = $this->userSession->getUser();
|
||||||
$isAdmin = $this->groupManager->isAdmin($user->getUID());
|
$isAdmin = $this->groupManager->isAdmin($user->getUID());
|
||||||
$subAdminManager = $this->groupManager->getSubAdmin();
|
$subAdminManager = $this->groupManager->getSubAdmin();
|
||||||
|
@ -280,10 +279,6 @@ class UsersController extends AUserData {
|
||||||
$this->editUser($userid, 'quota', $quota);
|
$this->editUser($userid, 'quota', $quota);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($language !== '') {
|
|
||||||
$this->editUser($userid, 'language', $language);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Send new user mail only if a mail is set
|
// Send new user mail only if a mail is set
|
||||||
if ($email !== '') {
|
if ($email !== '') {
|
||||||
$newUser->setEMailAddress($email);
|
$newUser->setEMailAddress($email);
|
||||||
|
|
Loading…
Reference in New Issue