summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsoohwa <none@none.none>2017-09-25 22:14:13 +0900
committersoohwa <none@none.none>2017-09-25 22:14:13 +0900
commitee94735922a7b992df82fce5efc1eb732fc994d3 (patch)
tree6767e2af4445f38a87a03979dbcce1db52d1748a
parentdeef0855d5420c7fa30c138d68cdae8b8f5c690d (diff)
downloadwekan-ee94735922a7b992df82fce5efc1eb732fc994d3.tar.gz
wekan-ee94735922a7b992df82fce5efc1eb732fc994d3.tar.bz2
wekan-ee94735922a7b992df82fce5efc1eb732fc994d3.zip
Lint error
-rw-r--r--models/users.js6
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, {