Foren

How to hide the dockbar for Site Members

Nikhil Sood, geändert vor 11 Jahren.

How to hide the dockbar for Site Members

Junior Member Beiträge: 41 Beitrittsdatum: 12.08.09 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: How to hide the dockbar for Site Members

Liferay Legend Beiträge: 1902 Beitrittsdatum: 10.03.08 Neueste Beiträge
Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
Nikhil Sood, geändert vor 11 Jahren.

RE: How to hide the dockbar for Site Members

Junior Member Beiträge: 41 Beitrittsdatum: 12.08.09 Neueste Beiträge
Hi Samuel,

Thanks for your reply.

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

Thanks,
Nikhil
thumbnail
Tejas Kanani, geändert vor 11 Jahren.

RE: How to hide the dockbar for Site Members

Liferay Master Beiträge: 654 Beitrittsdatum: 06.01.09 Neueste Beiträge
Hi Nikhil,

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

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