Download & Extend

Access Denied message after anonymous user submits content for moderation

Project:modr8
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I am using modr8 for some content types, modr8 is working correctly except for the confusing message that is displayed after the anonymous user submits content.

after they hit submit, they are taken to a page that says their content is going to be moderated, but the title of the page also says "Access Denied"
how can I stop that happenning?

here is a screenshot http://www.flickr.com/photos/65062256@N07/5925702177/

AttachmentSize
Screen shot 2011-07-11 at 13.49.49.png19.16 KB

Comments

#1

to clarify my above message.
I want everything to remain the same, except I don't want it to say access denied.
prefarably something like, "Your submission has been put in the queue for moderation" as the page title and page heading
also remove the last piece of text that says "you are not authorized to access this page"

#2

I know this is an older issue, but still seems relevant to document for posterity.. I just had a client complain about this same thing. Temporary solution:

Drupal's default behavior after creating a node is to display that node to the user who created it. In this case, it is obviously going to create an access denied situation since the node needs to be moderated before anyone can see it.

A workaround is to use Drupal's "destination" parameter in the node creation URL.. If you just use the following for the anonymous user's create content link:

http://mysite.com/node/add/story?destination=home

Then after creating the "story" content the user will be redirected to "home" and will still have the yellow box from your screen shot.