Skip to content
Snippets Groups Projects
Commit 6f40a0a8 authored by konstantintrushin's avatar konstantintrushin Committed by GitHub
Browse files

Update users.js

parent 6fee85f9
No related branches found
No related tags found
No related merge requests found
......@@ -208,10 +208,7 @@ RocketChat.API.v1.addRoute('users.update', { authRequired: true }, {
const userData = _.extend({ _id: this.bodyParams.userId }, this.bodyParams.data);
///////////// Please review this line. It will fail if we just want to enable user using REST API
//////////// {"userId": "ID", "data": { "active": true }}
RocketChat.saveUser(this.userId, userData);
////////////
if (this.bodyParams.data.customFields) {
RocketChat.saveCustomFields(this.bodyParams.userId, this.bodyParams.data.customFields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment