留言板

Hide notifications portlet in dockbar for certain users

Ralf Haller,修改在7 年前。

Hide notifications portlet in dockbar for certain users

Junior Member 帖子: 54 加入日期: 13-5-13 最近的帖子
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,修改在7 年前。

RE: Hide notifications portlet in dockbar for certain users

Liferay Master 帖子: 722 加入日期: 10-8-5 最近的帖子
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,修改在7 年前。

RE: Hide notifications portlet in dockbar for certain users

Junior Member 帖子: 54 加入日期: 13-5-13 最近的帖子
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