Hello,
Nodeaccess is a great project that I've been using for a pretty complex site. One feature that I needed that is missing is a workflow-ng action to set permission. This feature would allow for generated content to automatically have its roles and user permissions set based on conditions set by the site administrator. I've attached a rough/working add on module I've created that allows for a loaded users permissions to be set in workflow-ng along with roles.
Here's an example of how this could work. Our site has a node profile for each customer created by employees with the author of the profile set to the customer. Employees create content in the form of new nodes for this customer, which is then attached to the profile through node relativity. The author of this content is the employee who created it. Through the workflow-ng module I've attached, the permissions for this content are set to allow the parent's node's (in other words, the node profile) author to view the content but not edit it. This is also useful with our setup of the invoice module. Invoices are the children of node profiles and invoice items are connected to invoices through node reference. We plan on setting up workflow-ng to so that when an invoice item is saved, it's invoice is loaded, then the invoice's parent (the customer's node profile) is loaded and then the node profile's auther (the customer) is given access to the invoice item.
To try out this module, copy nodeaccess_workflow_ng.info and nodeaccess_workflow_ng.module into your module/nodeaccess/ directory and enable the module. Then set up your workflow-ngs.
A few things I want to do eventually:
Separate the one action I created into two: one for roles and one for users
Clean up the form theming
Add a "clear a node's permissions" action
I think nodeaccess should be setup so that default roles can disabled/enabled with a checkbox button. This would take a bit of work.
I'm certainly willing to work on implementing the above, but thought I'd release what I have so far.
Anyways, I hope people find this useful/will provide feedback!
| Comment | File | Size | Author |
|---|---|---|---|
| nodeaccess_workflow_ng.tgz | 1.93 KB | slip |
Comments
Comment #1
Anonymous (not verified) commentedworkflow-ng is not maintained