I would like to grant taxonomy access for a user to a certain term on a system event (like completing a purchase).

What I want is to load the user and then grant him/her access to a specific term.
Any way this is possible with rules?

I am using the following core and modules trying to achieve this:

  • Drupal core 6.26
  • Rules 6.x-1.4
  • Taxonomy Access Control Lite 6.x-1.6
  • Ubercart 6.x-2.9
  • UC Rules 6.x-1.0-rc1

Not sure this is the right place to be asking about this but already created an issue in the Ubercart issue queue as well (http://drupal.org/node/1634962).

Hope somebody might be able to help me regarding this.

Comments

TR’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 is no longer supported, but people might have a similar need in Drupal 7 so I'll sketch out a solution.

In Drupal, permissions are attached to roles.
Modules like TAC allow you to create permissions based on taxonomy terms. So for instance you could have a permission to view a node only if it had a certain term.
But still, these permissions are attached to ROLES, not to users.

So it's quite possible, even easy, to assign a role to a user based on a system event. This is what I think you are asking to do.

If however you are trying to change the permissions attached to a role, there's no built-in Rule action to do that. In #521266: role/permission rules integration @fago indicated that capability, if needed, should be implemented in a separate module and not put into Rules core.