diff --git a/models/users.js b/models/users.js index 8f8e446ad..adef3ad56 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;