Need an action to create and delete roles
Posted by jaochoo on February 11, 2010 at 4:14pm
I need an action which creates a new role with default permissions and a customized name as well as an action to delete a role to make Rules like the following:
- When a new node of content type "company" is created, create a new role with name "role_companyname"
- When a new node of content type "department" is created, populate the referenced company node and create a new role with name "role_companyname_departmentname"
- When a node of content type "department" is created, delete the role with name "role_departmentname"
- etc.
Question:
Read more