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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | workflow_moderate.info_.txt | 263 bytes | mandclu |
| #3 | workflow_moderate.module.txt | 5.55 KB | mandclu |
Comments
Comment #1
mandclu commentedI 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.
Comment #2
rjleigh commentedI've been working on something similar, also using moder8 as a starting point. I'd love to see what you did.
Comment #3
mandclu commentedNot a problem, my module is attached. Basically a simplified version of the Modr8 module, with some workflow hooks.
Comment #4
mandclu commentedAnd also a .info file.
Comment #5
verta commentedchanging queue
Comment #6
Bastlynn commentedHi,
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.