Hello,

I am trying to build a workflow-based system in which each node has an author and an optional list of co-authors. As the states of the workflow progress, the author's permissions change: at some stages he can view, at others he can view and edit.
I would like the co-authors, referenced via Node Access User Reference, to follow the permissions of the main node author as they change, rather than using a fixed set of permissions as is currently the case.

Could such a feature be implemented? Any alternative solutions? Thanks!

Comments

danielb’s picture

Status: Active » Closed (won't fix)

That is sooooo specific to your website. Think about; if you can change the permissions of the author - why can't you change the permissions of other users?? Seems like you would do it with the same bit of code. Don't think this module can help automate that though.

rismondo’s picture

Thank you for your answer! I am not entirely sure how what you say can be accomplished though, I hope you won't mind if I ask you for a little clarification.

I use the Workflow Access module to control the author's permissions. Therefore, as a new state is selected, the access module changes those permissions on its own. There is no obvious way that I can see to change from there the permissions of the additional users specified in the list as well, short of hacking the internals of that access module (which I would very much rather not do).

As an alternative, I could trigger an action upon a workflow transition; if Node Access User Reference had an integration with actions, the goal could be accomplished in that manner; however, actions are not available. The request in #462974: Allow other modules to change grants goes in the same direction, I believe.

Either way, I see no way to mirror an external change in permissions from the author to other users; that seems a pity, as this module looks perfect for the purpose.

Would you have any suggestions on the matter? If there is no other way to proceed, and you feel this case is too custom, I will just add one vote for #462974: Allow other modules to change grants, or even actions integration for this module.

Thank you for your help!!