Fórum

Hide notifications portlet in dockbar for certain users

Ralf Haller, modificado 7 Anos atrás.

Hide notifications portlet in dockbar for certain users

Junior Member Postagens: 54 Data de Entrada: 13/05/13 Postagens Recentes
Hi,

is there a way to hide the notifications portlet in the dockbar for certain users (e.g. users with role "User") without changing the portlet itself or even completely undeploying it? When I understand correctly, the notifications portlet dynamically changes the dockbar during runtime using JavaScript. Is that true?

Compared to that removing the "My sites" menu in the dockbar using a hook was easy.

Thanks for any help,

Ralf
thumbnail
Pankaj Kathiriya, modificado 7 Anos atrás.

RE: Hide notifications portlet in dockbar for certain users

Liferay Master Postagens: 722 Data de Entrada: 05/08/10 Postagens Recentes
I have not tried that but you can remove VIEW permission for Notification for Role. There is Notification section for you under Define Permission section when you define Role permissions.
Yes, Notifications gets generated dynamically and pops-up in dock-bar.
Ralf Haller, modificado 7 Anos atrás.

RE: Hide notifications portlet in dockbar for certain users

Junior Member Postagens: 54 Data de Entrada: 13/05/13 Postagens Recentes
Pankaj Kathiriya:
I have not tried that but you can remove VIEW permission for Notification for Role. There is Notification section for you under Define Permission section when you define Role permissions.


This does not work, the portlet is still displayed in the dockbar...

Ralf