Foros de discusión

How to hide the dockbar for Site Members

Nikhil Sood, modificado hace 11 años.

How to hide the dockbar for Site Members

Junior Member Mensajes: 41 Fecha de incorporación: 12/08/09 Mensajes recientes
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 hace 11 años.

RE: How to hide the dockbar for Site Members

Liferay Legend Mensajes: 1902 Fecha de incorporación: 10/03/08 Mensajes recientes
Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
Nikhil Sood, modificado hace 11 años.

RE: How to hide the dockbar for Site Members

Junior Member Mensajes: 41 Fecha de incorporación: 12/08/09 Mensajes recientes
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 hace 11 años.

RE: How to hide the dockbar for Site Members

Liferay Master Mensajes: 654 Fecha de incorporación: 6/01/09 Mensajes recientes
Hi Nikhil,

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

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