Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 168 forks source link

Add usage example for complicated permissions #248

Closed Didericis closed 6 years ago

Didericis commented 7 years ago

I made a mixin for ValidatedMethod that depends on this and allows users to define method permissions declaratively (which gets useful when they become more complicated/start muddying up method bodies) that seems pretty well received. Thought it might be useful to include in here for people who run into the same problem.

fillipefeitosa commented 6 years ago

+1

alanning commented 6 years ago

Thanks @Didericis, looks useful. Could you update the example with something that you've used in a real app, please?

Didericis commented 6 years ago

@alanning Cool, thanks. Good suggestion. Just updated it with a real life example over here: https://github.com/alanning/meteor-roles/pull/263.