~/.meteor
dir
./reaction
everything is right there in the directory
~/.meteor/
meteor npm install
?
./reaction
and it seems to be ok?
meteor npm install
./reaction pull
meteor npm install
?
corePageWorkflow
, Try to update Shops.layout and make sure it's inside
I'm adding some permissions to current users roles like this:
user.roles[shopId].push("accountSellerProducts"); // for access to our own products route
user.roles[shopId].push("accountSellerSellerorders"); // for access to our own orders route
Roles.addUsersToRoles(Meteor.userId(), "accountSellerProducts", shopId);
Meteor.users.update(Meteor.userId(),
{
"$set": {
isSeller: isSeller,
"profile.isDecided": true,
"roles": user.roles
}
}
);
But they are not effective immediately. A full page refresh from the browser is needed. Why?
Should I do it differently?
When I had it in the ReactionCore.Hooks.Events.add( "onCreateUser", ...)
it worked immediately.
npm install
before they ran meteor npm install
. I would try rm -rf
’ing the directory again, reclone, and then try just meteor npm install
then ./reaction
meteor npm install
?
./meteor
rm -rf
’ing your ~./meteor
directory and starting again