Hello, I need to know if is a way to grant view/edit permission if a field contains a specific word. I have a database with customers and some distributors, and I want to give access to some distributors to some nodes and deny to other nodes. For example if the customer is from the city "London" and the field (drop down select from a list) is London, the distributor from London to view the specific nodes, and not the others, and so on...

Thanks!

Comments

minute’s picture

I am using taxonomy and access control, somehow I made it, but not as I wanted to. I used node access control (http://drupal.org/project/node_access_control) and create a new role, and every time I create a new node, I have an option to give access to the roles. And also I created with workflow-ng a rule to give access to the node they created. But, as I said before, I wanted to do something automatic, if the cck field is "London", to automatic give permission to view/edit/delete and if not, to deny the access to the nodes. Anyway, it works as I mentions before, so if anyone wants to do smth I wanted, to do as I did.

Thanks!