diff --git a/server/api/controllers/user.controller.js b/server/api/controllers/user.controller.js index 6aa147f501..4a7bdcdce7 100644 --- a/server/api/controllers/user.controller.js +++ b/server/api/controllers/user.controller.js @@ -131,6 +131,7 @@ module.exports = function UserController(gladys) { * @apiGroup User */ async function updateMySelf(req, res, next) { + delete req.body.role; const newUser = await gladys.user.update(req.user.id, req.body); res.json(newUser); }