Closed Didericis closed 6 years ago
+1
Thanks @Didericis, looks useful. Could you update the example with something that you've used in a real app, please?
@alanning Cool, thanks. Good suggestion. Just updated it with a real life example over here: https://github.com/alanning/meteor-roles/pull/263.
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.