diff options
Diffstat (limited to 'models/users.js')
-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; |