diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-09-24 17:08:28 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-09-24 17:08:28 +0300 |
commit | f7a1c4896bc9d80a864c71a272827dc6d2cbddaa (patch) | |
tree | 7861de7171a6d4693d30444b6cf9b46be1e7c976 /models | |
parent | cb4a6790506271dfb424efd512f0e7779eaffba1 (diff) | |
download | wekan-f7a1c4896bc9d80a864c71a272827dc6d2cbddaa.tar.gz wekan-f7a1c4896bc9d80a864c71a272827dc6d2cbddaa.tar.bz2 wekan-f7a1c4896bc9d80a864c71a272827dc6d2cbddaa.zip |
Fix lint errors.
Diffstat (limited to 'models')
-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 9744d51c..505ed93e 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, { |