Foros de discusión

Portlet or page only visible by unauthenticated users

thumbnail
Loïc Dumont, modificado hace 12 años.

Portlet or page only visible by unauthenticated users

Junior Member Mensajes: 43 Fecha de incorporación: 27/04/10 Mensajes recientes
Hi,

I'm trying to configure a portlet (or a page) to be visible only by unauthenticated users.

For example when they are on the homepage, the unauthenticated users will see the login portlet and once they have login the portlet is not displayed.

I was thinking that setting view permissions to only guest would do the trick, but it doesn't. The portlet is always visible.

Does it mean that authenticated users inherite the guest permissons? Is it normal? is it a bug?

How can I achieve this...

Env:
Liferay 6.0.6 CE
With only on community, using only public pages with permissions for different roles to display them different portlet and pages.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Perhaps you can try to remove view permission for User role (I remember that role was for authenticated users in almost 100% of the use cases).
thumbnail
Loïc Dumont, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Junior Member Mensajes: 43 Fecha de incorporación: 27/04/10 Mensajes recientes
In my case I remove all permissions but :

- All permissions to the owner
- View permissions for guest

This was done in the portlet permissions (or page permission). Nothing else in the control panel.

But a user which is authenticated can see the portlet! What can I do?
thumbnail
Hitoshi Ozawa, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Following thread seems to be kind of similar to what you're asking.

http://www.liferay.com/community/forums/-/message_boards/message/8829387
thumbnail
Loïc Dumont, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Junior Member Mensajes: 43 Fecha de incorporación: 27/04/10 Mensajes recientes
Thanks for the link, but this is not enough for us, we want also this on pages and that the user can set this manually on the portlets.

Is it possible using permissions?
thumbnail
Corné Aussems, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Liferay Legend Mensajes: 1313 Fecha de incorporación: 3/10/06 Mensajes recientes
Noop
Everybody who has login rights has same rights as guest.
That is the whole problem here
thumbnail
Hitoshi Ozawa, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Corné's right on this. You'll have to modify the Liferay program to do what you want to do.
thumbnail
Loïc Dumont, modificado hace 12 años.

RE: Portlet or page only visible by unauthenticated users

Junior Member Mensajes: 43 Fecha de incorporación: 27/04/10 Mensajes recientes
Ok that's too bad.

I'm trying to find a solution that could fit my requirements using private and public pages.

Thanks for your help.