Forums de discussion

Redirect to login when accessing protected document

thumbnail
Thomas Berg, modifié il y a 12 années.

Redirect to login when accessing protected document

Regular Member Publications: 131 Date d'inscription: 07/09/09 Publications récentes
Hi,

I've put a document in a certain organization's Document Library and have updated the permissions so that only organization members (and the owner) can access the document.

Users who click on the download link for the file (the url created by the Document Library) while not being logged in gets a message saying
"You do not have permission to access the requested resource". (com.liferay.portal.security.auth.PrincipalException)

This is expected behaviour I guess but is it possible to redirect non-logged-in users to the login page (appending a redirect-parameter for the resource) instead of showing this message?

Thanks in advance,
Regards Thomas
Cedric Soret, modifié il y a 11 années.

RE: Redirect to login when accessing protected document

New Member Publications: 14 Date d'inscription: 27/02/12 Publications récentes
Hello,

It's late but had someone found any solution to this problem ?

Regards
Cedric
Evan Zeimet, modifié il y a 10 années.

RE: Redirect to login when accessing protected document

New Member Publications: 9 Date d'inscription: 23/07/13 Publications récentes
Having the same issue. Hoping for a fix.