Clear "fromAdmin". Thx to nztqa.

This commit is contained in:
soohwa 2017-10-06 01:21:45 +09:00
parent 42ca385a36
commit 273784b9e4

View file

@ -534,8 +534,10 @@ if (Meteor.isServer) {
Users.after.insert((userId, doc) => { Users.after.insert((userId, doc) => {
if (doc.fromAdmin) if (doc.fromAdmin) {
Users.update(doc._id, { $set: { fromAdmin: '' } });
return; return;
}
//invite user to corresponding boards //invite user to corresponding boards
const disableRegistration = Settings.findOne().disableRegistration; const disableRegistration = Settings.findOne().disableRegistration;