I am using alanning:roles package to manage permissions. So checking roles in every publication seems to be annoying.
Is there any package that allows to use publications in regular way, but under the hood check permissions from dedicated collection to this.userId to subscribe to certain publication?
Hmm…>30 and count grows. I wasn’t pretty honest. We’ve already have that collection with permissions and an ugly function that we have to run in every publication. So…
nice technique. I’ve been working hard on drying up my code considerably with meteor - most of my modules now use only one publish function with a fairly robust query and option managing mechanism, and this is another nice approach to cleaning things up. cheers.