Content in moderation viewable for anonymous user (i.e. everyone)

Roderik - August 15, 2007 - 01:41
Project:modr8
Version:5.x-2.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The modr8 module is designed such that only people with modr8 priviliges AND the user who submitted the node, are able to see the submitted node in lists while it is in moderation.

Well, that should not be the case for 'the anonymous user'. Currently, if an anonymous user submits a node that goes into the moderation queue, everyone still see this node _unless_ they are logged in!

This little patch fixes that.
(Oh, and I slightly changed a comment. I hope you don't mind.)

AttachmentSize
donotlistforanonymous.patch1.14 KB

#1

pwolanin - August 16, 2007 - 00:35

hmm, good catch - let me test.

#2

pwolanin - August 16, 2007 - 02:25
Status:patch (code needs review)» fixed

slightly altered patch committed to HEAD, and will be committed to the 5.x branch

AttachmentSize
not_anon.patch1.6 KB

#3

Anonymous - August 30, 2007 - 02:32
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.