summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorsoohwa <none@none.none>2017-10-06 01:21:45 +0900
committersoohwa <none@none.none>2017-10-06 01:21:45 +0900
commit273784b9e46a83e02d65cd0281c93d5d0b3bb6cc (patch)
treef3edca82b82ea8a86dc00bf2843819995941334a /models
parent42ca385a36ace9e4553526a40c6635e0b58a7c3c (diff)
downloadwekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.tar.gz
wekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.tar.bz2
wekan-273784b9e46a83e02d65cd0281c93d5d0b3bb6cc.zip
Clear "fromAdmin". Thx to nztqa.
Diffstat (limited to 'models')
-rw-r--r--models/users.js4
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;