Foros de discusión

Hide notifications portlet in dockbar for certain users

Ralf Haller, modificado hace 7 años.

Hide notifications portlet in dockbar for certain users

Junior Member Mensajes: 54 Fecha de incorporación: 13/05/13 Mensajes recientes
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 hace 7 años.

RE: Hide notifications portlet in dockbar for certain users

Liferay Master Mensajes: 722 Fecha de incorporación: 5/08/10 Mensajes recientes
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 hace 7 años.

RE: Hide notifications portlet in dockbar for certain users

Junior Member Mensajes: 54 Fecha de incorporación: 13/05/13 Mensajes recientes
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