Workflow and TAC Lite - can't edit unpublished node

gettysburger - October 13, 2008 - 18:47

I am using Workflow and Taxonomy Access Control Lite with Drupal 6.5.

I have two roles: Author and Editor

I have four states: Draft, Ready for Review, Ready to Publish and Published

I have two taxonomy terms: History and Math.

My Author, who has permission to edit her own pages, creates a page, selects the taxonomy term History, and changes the state of the node to Published.

My Author, creates another page, selects the taxonomy term Math, and changes the state of the node to Published.

My Editor, who has permission to view and update only History nodes, can edit the History node in its Published state. This is correct.

The problem comes when I want the editor to edit the History node in an unpublished state. If I give the Editor permission to edit Page type nodes via the general permissions page, Access Control module, or Workflow Access Control module, he can edit all Page nodes, including the Math one.

How do I use Workflow and TAC Lite to allow someone to edit a taxonomy-restricted, unpublished node? Thanks.

iirc, the ability to view

WorldFallz - October 14, 2008 - 02:19

iirc, the ability to view unpublished nodes is tied to the "administer nodes" permission.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

way too much access...

gettysburger - October 14, 2008 - 12:55

I was afraid this was the case. It would seem that the ability to have an editor, not a node's author, be able to edit a node before it is published, while limiting the editor's access to a narrow group of nodes defined by taxonomy, is standard stuff.

The drupal philosophy is to

WorldFallz - October 14, 2008 - 13:25

The drupal philosophy is to keep only the most widely applicable functionality in core while preserving the ability of contributed modules to enhance it for specific use cases. My guess is that because there's so many ways to slice and dice access control, taxonomy is only one of them, it was left to contributed modules.

In any case, perhaps the http://drupal.org/project/view_unpublished or http://drupal.org/project/publishcontent modules may be able to narrow down the unpublished content permissions the way you'd like.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

Guys, I was tackling these

adshill - May 23, 2009 - 07:12

Guys, I was tackling these issues for weeks now to no avail... searching, posting, searching some more. And then I found my salvation - in the form of a module that went under the radar - but its great, and so now I'm trying to go around all the threads I read on this subject spreading the news (incase you didn't find it already :)!! Here it is: http://drupal.org/project/module_grants

Enjoy.

Adam

 
 

Drupal is a registered trademark of Dries Buytaert.