diff options
author | soohwa <none@none.none> | 2017-09-25 22:14:13 +0900 |
---|---|---|
committer | soohwa <none@none.none> | 2017-09-25 22:14:13 +0900 |
commit | ee94735922a7b992df82fce5efc1eb732fc994d3 (patch) | |
tree | 6767e2af4445f38a87a03979dbcce1db52d1748a /models/users.js | |
parent | deef0855d5420c7fa30c138d68cdae8b8f5c690d (diff) | |
download | wekan-ee94735922a7b992df82fce5efc1eb732fc994d3.tar.gz wekan-ee94735922a7b992df82fce5efc1eb732fc994d3.tar.bz2 wekan-ee94735922a7b992df82fce5efc1eb732fc994d3.zip |
Lint error
Diffstat (limited to 'models/users.js')
-rw-r--r-- | models/users.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/models/users.js b/models/users.js index 43faf4d4..8d154c4b 100644 --- a/models/users.js +++ b/models/users.js @@ -440,7 +440,7 @@ if (Meteor.isServer) { return user; } - if (options.from == 'admin') { + if (options.from === 'admin') { user.fromAdmin = true; return user; } @@ -535,7 +535,7 @@ if (Meteor.isServer) { Users.after.insert((userId, doc) => { if (doc.fromAdmin) - return; + return; //invite user to corresponding boards const disableRegistration = Settings.findOne().disableRegistration; @@ -595,7 +595,7 @@ if (Meteor.isServer) { username: req.body.username, email: req.body.email, password: 'default', - from: 'admin' + from: 'admin', }); JsonRoutes.sendResult(res, { |