Browse Source

Clear "fromAdmin". Thx to nztqa.

soohwa 7 years ago
parent
commit
273784b9e4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      models/users.js

+ 3 - 1
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;