Closed (works as designed)
Project:
Drupal Commons
Version:
7.x-3.3
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Nov 2011 at 19:16 UTC
Updated:
9 Oct 2013 at 18:29 UTC
Not sure if this is a bug or not... But, when a user receives an email about a Private Message and clicks on that link the user gets the following type message:
Access denied
You are not authorized to access this page.
or
Page Not Found type error
I find the above error messages misleading. The user gets this error because they have not yet logged in.
I want to know where I can easily update the message to say:
Access Denied
You many need to log in to access this page or you do not have sufficient privilege to view this page.
Thanks!
Comments
Comment #1
inabli commentedHey, I am not sure if this workaround would work for you (in your specific scenario described above) but I have installed the module LoginToboggan and in its admin settings you can enable a nice feature 'Present login form on access denied (403)'
Have a try and let me know if it worked
By the way, how did you activate the Private Messaging functionality for Commons? by default I dont have this. Your help is appreciated
Thanks
Imad
Comment #2
epaul commentedInabli, thanks for the info. I do have Logintobogan installed and that feature you suggested is enabled. But, I think that is only for "Access Denied" messages. For commons, I get a "Page Not Found" when users clicks on links to read their Private Message and not yet logged in.
BTW, I had to install the Private Message module separately.
Comment #3
ezra-g commentedMaking the title of this issue more specific. This may be related to the way that Commons implements the requirement that users log in to view any content.
Comment #4
lightsurge commentedI use this method for page not found / access denied problems with Commons, works really well:
http://drupal.org/node/60148#comment-4825682
Comment #5
raushan commentedI have to install Drupal commons and private message module "/messages" pages show Access denied error for admin users, i have to check all permissions.
kindly help me if any body has answer.
Thank you,
Raushan Tiwari.
Comment #6
ezra-g commentedAdding to the 3.4 radar for triage.
Comment #7
raushan commentedthank you for your reply.
I am also use commons-7.x-3.4-rc1-core.zip and configure them, but same problem inbox page (/messages) access denied
please help me, how i manage them.
Thank you
Raushan Tiwari.
Comment #8
devin carlson commentedThe Commons Trusted Contacts module provides its own UI for handling private messages and thus removes the original private message pages in
commons_trusted_contacts_menu_alter().What's your use case for needing the /messages and/or the /messages/list pages in addition to the pages provided by Commons Trusted Contacts? You could disable the Commons Trusted Contacts module and use the stand alone Private Message module if you require custom functionality.
Marking this as "needs more info" although it may be "works as designed".
Comment #9
ezra-g commentedMarking as "works as designed" but feel free to re-open per #8.