I've found the Simple Access module that lets me restrict access to nodes by assigning them to groups, and that's fantastic, but I am looking for something a bit more advanced. I don't think TAC / TAC Lite has this either.
I have an ecommerce store (Ubercart), and users can purchase a quiz which, if they pass, they get a certificate. So obviously, I need to restrict access to the quiz-related nodes if they're not logged in or have not purchased the quiz. I also offer webcasts on the site, and I'd like to do the same with them.
I COULD create multiple groups, add the user to the groups when they purchase the products, and allow them access then, but then I would have to create a new group each time a product is added, and this is not ideal. It would be nice to be able to restrict access to nodes by wildcard, and also to evaluate a snippet of PHP code to see if they have access (for instance, whether the user has purchased a particular product).
Anyone know of something that exists like this? Any workarounds?
Comments
Well, it seems as though the
Well, it seems as though the nodeaccess module will actually work better, though I may be writing a module to automatically grant permissions when a product is purchased from my (Ubercart) store.
See http://www.ubercart.org/forum/support/1247/access_control_based_product for more follow up.