留言板

How to hide the dockbar for Site Members

Nikhil Sood,修改在11 年前。

How to hide the dockbar for Site Members

Junior Member 帖子: 41 加入日期: 09-8-12 最近的帖子
Hi All,

I understand from some the forum that we can hide the dockbar, and it works fine.

#if ($permissionChecker.isOmniadmin())
#dockbar()
#end

However in my case, dockbar should be available to the Site Administator as well. I need to hide it only for Site Members.
Using the above statement Dockbar is available only to the Portal Administrator role. Is it possible in VM to check permissions for SiteAdmin role?

Appreciate your help.

Thanks,
Nikhil
thumbnail
Samuel Kong,修改在11 年前。

RE: How to hide the dockbar for Site Members

Liferay Legend 帖子: 1902 加入日期: 08-3-10 最近的帖子
Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
Nikhil Sood,修改在11 年前。

RE: How to hide the dockbar for Site Members

Junior Member 帖子: 41 加入日期: 09-8-12 最近的帖子
Hi Samuel,

Thanks for your reply.

I am afraid, it didn't work as required. Any other suggestions, please?

Thanks,
Nikhil
thumbnail
Tejas Kanani,修改在11 年前。

RE: How to hide the dockbar for Site Members

Liferay Master 帖子: 654 加入日期: 09-1-6 最近的帖子
Hi Nikhil,

Check this It should work. It's working for me.

#if ($is_signed_in && $permissionChecker.isGroupAdmin($group_id))
	#dockbar()
#end