I have set up the workflow module to put newly submitted content through a two-step approval process. Content progresses as follows:
Submitted > Reviewed > Approved

I also set up actions, so that submitted content automatically is set to not be published, and once it's approved it is published. All of that works fine, and seems to be effective in making sure that content can't be accessed (even by keyword search) until it's fully approved.

My issue is that there are users who need to be able to review the submitted content, but I don't want to give them the full 'administer nodes' permission. Is there a way to accomplish what I need? I'm not against rolling up my sleeves and writing a module to allow a new level of permission, but I'm really not that familiar with the access mechanisms in Drupal 5. If someone could point me in the right direction, it would be greatly appreciated.

Comments

mandclu’s picture

Title: Workflow permissions » Workflow moderation

I took a cue from the Modr8 module and used the core (but seemingly unused) 'moderate' field to achieve what I need. I created actions to set and unset the field, and (as per Modr8) used hook_db_rewrite_sql to exclude content in moderation from standard listing, except for those with moderation (or administration) permissions. If anyone is interested, I can post the code that got it working for me.

rjleigh’s picture

I've been working on something similar, also using moder8 as a starting point. I'd love to see what you did.

mandclu’s picture

StatusFileSize
new5.55 KB

Not a problem, my module is attached. Basically a simplified version of the Modr8 module, with some workflow hooks.

mandclu’s picture

Status: Active » Needs review
StatusFileSize
new263 bytes

And also a .info file.

verta’s picture

Component: Documentation » Code

changing queue

Bastlynn’s picture

Status: Needs review » Closed (won't fix)

Hi,

With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.

- Bastlynn

If you're still interested in following up on this idea, please reroll your code for 6 or 7.