Fórum

How to hide the dockbar for Site Members

Nikhil Sood, modificado 11 Anos atrás.

How to hide the dockbar for Site Members

Junior Member Postagens: 41 Data de Entrada: 12/08/09 Postagens Recentes
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, modificado 11 Anos atrás.

RE: How to hide the dockbar for Site Members

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
Nikhil Sood, modificado 11 Anos atrás.

RE: How to hide the dockbar for Site Members

Junior Member Postagens: 41 Data de Entrada: 12/08/09 Postagens Recentes
Hi Samuel,

Thanks for your reply.

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

Thanks,
Nikhil
thumbnail
Tejas Kanani, modificado 11 Anos atrás.

RE: How to hide the dockbar for Site Members

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Hi Nikhil,

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

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