Fórumok

Redirect to login when accessing protected document

thumbnail
Thomas Berg, módosítva 12 év-val korábban

Redirect to login when accessing protected document

Regular Member Bejegyzések: 131 Csatlakozás dátuma: 2009.09.07. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Redirect to login when accessing protected document

New Member Bejegyzések: 14 Csatlakozás dátuma: 2012.02.27. Legújabb bejegyzések
Hello,

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

Regards
Cedric
Evan Zeimet, módosítva 10 év-val korábban

RE: Redirect to login when accessing protected document

New Member Bejegyzések: 9 Csatlakozás dátuma: 2013.07.23. Legújabb bejegyzések
Having the same issue. Hoping for a fix.