quarta-feira, 14 de janeiro de 2015

Liferay - How to fix the You do not have the roles required to access this portlet message

How to fix the You do not have the roles required to access this portlet message

There will be times where you want to configure the visualization permissions for a portlet.

To do so, you authenticate yourself and access the Configuration area in right top corner of the portlet.


This is the list of edit options of the portlet.


There you'll want to remove the View choice from the Guest role.

This is the portlet permissions listed by role.


You save and think: "Done!"

But it isn't.

When you access the page with the portlet you have just configured, you'll see this warning:

This image shows the message You do not have the roles required to access this portlet.


To remove this warning, you must access the portal-ext.properties

and add (or edit) the next line:


layout.show.portlet.access.denied=false

Restart the server and you're done!

Sem comentários:

Enviar um comentário