Browse Source

Fix templates board not found

Andrés Manelli 6 years ago
parent
commit
6ee75fbdba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/users.js

+ 2 - 2
models/users.js

@@ -711,7 +711,6 @@ if (Meteor.isServer) {
   CollectionHooks.getUserId = () => {
   CollectionHooks.getUserId = () => {
     return fakeUserId.get() || getUserId();
     return fakeUserId.get() || getUserId();
   };
   };
-  /*
   if (!isSandstorm) {
   if (!isSandstorm) {
     Users.after.insert((userId, doc) => {
     Users.after.insert((userId, doc) => {
       const fakeUser = {
       const fakeUser = {
@@ -721,6 +720,7 @@ if (Meteor.isServer) {
       };
       };
 
 
       fakeUserId.withValue(doc._id, () => {
       fakeUserId.withValue(doc._id, () => {
+      /*
         // Insert the Welcome Board
         // Insert the Welcome Board
         Boards.insert({
         Boards.insert({
           title: TAPi18n.__('welcome-board'),
           title: TAPi18n.__('welcome-board'),
@@ -737,6 +737,7 @@ if (Meteor.isServer) {
             Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
             Lists.insert({title: TAPi18n.__(title), boardId, sort: titleIndex}, fakeUser);
           });
           });
         });
         });
+        */
 
 
         Boards.insert({
         Boards.insert({
           title: TAPi18n.__('templates'),
           title: TAPi18n.__('templates'),
@@ -786,7 +787,6 @@ if (Meteor.isServer) {
       });
       });
     });
     });
   }
   }
-  */
 
 
   Users.after.insert((userId, doc) => {
   Users.after.insert((userId, doc) => {