diff options
author | soohwa <none@none.none> | 2017-10-06 01:21:45 +0900 |
---|---|---|
committer | soohwa <none@none.none> | 2017-10-06 01:21:45 +0900 |
commit | 273784b9e46a83e02d65cd0281c93d5d0b3bb6cc (patch) | |
tree | f3edca82b82ea8a86dc00bf2843819995941334a | |
parent | 42ca385a36ace9e4553526a40c6635e0b58a7c3c (diff) | |
download | wekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.tar.gz wekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.tar.bz2 wekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.zip |
Clear "fromAdmin". Thx to nztqa.
-rw-r--r-- | models/users.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/models/users.js b/models/users.js index 8f8e446a..adef3ad5 100644 --- a/models/users.js +++ b/models/users.js @@ -534,8 +534,10 @@ if (Meteor.isServer) { Users.after.insert((userId, doc) => { - if (doc.fromAdmin) + if (doc.fromAdmin) { + Users.update(doc._id, { $set: { fromAdmin: '' } }); return; + } //invite user to corresponding boards const disableRegistration = Settings.findOne().disableRegistration; |