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

inabli’s picture

Hey, 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

epaul’s picture

Inabli, 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.

ezra-g’s picture

Title: Access Denied or Page Not Found Error » Access Denied or Page Not Found Error with Privatemessage

Making 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.

lightsurge’s picture

I use this method for page not found / access denied problems with Commons, works really well:

http://drupal.org/node/60148#comment-4825682

raushan’s picture

Version: » 7.x-3.3

I 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.

ezra-g’s picture

Priority: Normal » Major
Issue tags: +Commons 7.x-3.4 radar

Adding to the 3.4 radar for triage.

raushan’s picture

thank 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.

devin carlson’s picture

Status: Active » Postponed (maintainer needs more info)

The 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".

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Marking as "works as designed" but feel free to re-open per #8.