These are chat archives for reactioncommerce/reaction

5th
Aug 2015
Spencer Norman
@spencern
Aug 05 2015 19:11
Stylish new pic @aaronjudd
Aaron Judd
@aaronjudd
Aug 05 2015 19:15
@spencern thanks! time for the once a decade update! lol
Spencer Norman
@spencern
Aug 05 2015 22:05

Where’s a good example of registering a new permission type?

e.g. something that this can work with.

unless ReactionCore.hasPermission(‘createProductEvent’)
So: Roles.addUsersToRoles(Meteor.userId(), 'createProductEvent', ReactionCore.getShopId())
Spencer Norman
@spencern
Aug 05 2015 23:00
Perfect. Didn’t realize that roles were automatically created. Thanks!
:+1: for the example. I probably would have neglected the shopId