controlling access to items by user role/taxonomy?

Posts: 3
Joined: 09/03/2007

We have some areas of our site that are only available to specific membership groups using taxonomy control.

Is there a way to make some items in the store available only to those members? I think it'd be easy if the items could be tagged with terms from the taxonomy.

Unless I can make the category name the same as my taxonomy term that controls access, and get the same effect?

Anyway, suggestions on how to make this work would be appreciated.

Thanks.

Posts: 2357
Joined: 08/07/2007
AdministratoreLiTe!

The Catalog is a vocabulary just like any other, and it's categories are taxonomy terms like any other, so your taxonomy access module should be able to work with them in the exact same way.

Also, since products are nodes, they can be tagged by another vocabulary just like other nodes. You may need to edit the access vocabulary to allow the product node types if that hasn't been done already. You'll have to go through and add all of those products by hand to that taxonomy, though.

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I've used this module successfully in the past for something like this:

http://drupal.org/project/tac_lite

Posts: 14
Joined: 11/17/2008
Uber Donor

I have discovered that the Taxonomy Access Control module inexplicably will not work with Ubercart store nodes. I spent a day trying to convince it otherwise. Fortunately, the TAC Lite module works just fine. It takes a little getting used to after the old TAC. Just remember the TAC Lite concept that roles decide what users can do, and the TAC page (which you link to a taxonomy category and terms) decides what kinds of content those users can see (or create, or modify, or delete).

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

For what it's worth, since my original post of last year I've been using http://drupal.org/project/content_access with good results. It allows you to do role based access for node types or individual nodes... it even allows user based access if needed.