These are chat archives for reactioncommerce/reaction
Hi @aaronjudd I have been thinking on a way to dynamically change the Roles that we add to the user on account create, and it would be great if we could change the
user.roles[shopId] = [ "guest", "account/profile" ]
to something like
user.roles[shopId] = ReactionCore.Helpers.UserRolesOnInit
but I'm not sure I should add this array of permissions in the ReactionCore.Helpers, what other ReactionCore object should I use? Would you accept a PR about this what do you think?
envcommand in the terminal?
/usr/bin/envis the full path of the
envcommand. Can you do
which envin the terminal and paste the result here?
optionsparameter that is passed to http://docs.meteor.com/#/full/accounts_oncreateuser to pass in
options.rolesand fallback to the predefined array?
Accounts.createUser. just thinking this might not be something you’d want to add to ‘ReactionCore.’ as a global. Perhaps it should actually be a shop setting though - (like Shops.defaultRoles)
@prinzdezibel I'm tackling this same problem but with popovers. You can go about it this way; use Blaze.renderWithData to create your overlay and pass in the product as data. That template could be inserted somewhere in the body and styled with everything you need to make it appear over your content.
On route change, you can trigger an event that closes the overlay.