For Drupal 6: Allow bypass of moderation on per-role basis

thicarrion - March 17, 2009 - 19:18
Project:modr8
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:modr8, role, user roles
Description

Hi,
I've seen ppl asking for the same feature for drupal 5 and some of these were even answered.
One of then give a code for drupal 6. But I've created the mini-module as said and it did not work.
So I would like to ask for help. Could anyone make a mini module for drupal 6, as it was done in this issue:http://drupal.org/node/324530?
Please, don't understand Php :(

#1

VM - March 17, 2009 - 19:21
Category:feature request» support request
Status:active» fixed

What you link to is not a mini module it is a patch. see: http://drupal.org/patch/apply for information on how to learn to apply patches.

#2

thicarrion - March 17, 2009 - 19:31
Category:support request» feature request
Status:fixed» active

Right, That one is a patch, but the mini module i've talked about is this one: http://drupal.org/node/153462.
Either way, that patch is for Drupal 5. I would need a patch or minimodule for drupal 6.
Thanks anyway!

#3

VM - March 17, 2009 - 20:46

When you say the mini module in http://drupal.org/node/153462#comment-822627 did not work

what does "did not work" mean ? it would be helpful if you provided a more verbose explaination.

#4

andrewsuth - March 31, 2009 - 01:40

He's right, the mini-module for 6.x was missing the line:
$node->moderate = 0; // remove node from moderate list.

So nodes were published but still remained in the moderators list, and therefore were never 'visible'.

Here is a link to a fixed and tested version of the mini-module: http://drupal.org/node/418896

+1 for this to be added to the main module.

#5

VM - March 31, 2009 - 02:55

I've corrected the Drupal 5.x snippet in the documentation adding the line you found missing.

#6

thicarrion - April 1, 2009 - 18:02

Thanks so much, I will be trying out this one!

#7

roderik - July 4, 2009 - 22:51

IF you want to patch the existing module instead of using the mini module: see here for a D6 patch too (and for the reason): #324530: Allow bypass of moderation on per-role basis

#8

pbeakley - August 6, 2009 - 23:38

(Xposted with my comment on the minimodule page)

Hey, so I created this minimodule. I think it's correct. I successfully activated it in the admin section. I granted permission to two of my three specific role types -- I assume that granting permission automatically makes those roles skip moderation, right? I left one role ungranted, because that's the ONE role whose content I want moderated.

However, even after a cache dump and logging out/in, all the content created by those two roles -- the ones granted "skip moderation" permission -- still gets dumped into the modr8 queue.

What do you think?

As a side note I am testing a rule specific to this content type via the Rules module at the same time. Is there a possible interaction there?

p.

#9

johngriffin - August 16, 2009 - 23:18

Those who have difficulty implementing your own module to achieve this functionality may be interested in a module I've just submitted for review:

Modr8_bypass:
http://drupal.org/node/550890

#10

johngriffin - September 14, 2009 - 22:51

Moderate bypass module now released: http://drupal.org/project/modr8_bypass

 
 

Drupal is a registered trademark of Dries Buytaert.