Foren

Redirect to login when accessing protected document

thumbnail
Thomas Berg, geändert vor 12 Jahren.

Redirect to login when accessing protected document

Regular Member Beiträge: 131 Beitrittsdatum: 07.09.09 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: Redirect to login when accessing protected document

New Member Beiträge: 14 Beitrittsdatum: 27.02.12 Neueste Beiträge
Hello,

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

Regards
Cedric
Evan Zeimet, geändert vor 10 Jahren.

RE: Redirect to login when accessing protected document

New Member Beiträge: 9 Beitrittsdatum: 23.07.13 Neueste Beiträge
Having the same issue. Hoping for a fix.