parent
3850bd9681
commit
adec2bcc5b
|
@ -73,9 +73,6 @@ export class UserController {
|
|||
@OpenAPI({ description: "Update a user object (id can't be changed)." })
|
||||
async put(@Param('id') id: number, @Body({ validate: true }) updateUser: UpdateUser) {
|
||||
let oldUser = await this.userRepository.findOne({ id: id });
|
||||
delete oldUser.permissions;
|
||||
delete oldUser.groups;
|
||||
delete oldUser.actions;
|
||||
|
||||
if (!oldUser) {
|
||||
throw new UserNotFoundError();
|
||||
|
|
Loading…
Reference in New Issue