Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nikhil Sood
How to hide the dockbar for Site Members
October 7, 2012 8:58 PM
Answer

Nikhil Sood

Rank: Junior Member

Posts: 41

Join Date: August 12, 2009

Recent Posts

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
Samuel Kong
RE: How to hide the dockbar for Site Members
October 7, 2012 9:47 PM
Answer

Samuel Kong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1005

Join Date: March 10, 2008

Recent Posts

Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
Nikhil Sood
RE: How to hide the dockbar for Site Members
October 7, 2012 10:27 PM
Answer

Nikhil Sood

Rank: Junior Member

Posts: 41

Join Date: August 12, 2009

Recent Posts

Hi Samuel,

Thanks for your reply.

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

Thanks,
Nikhil
Tejas Kanani
RE: How to hide the dockbar for Site Members
October 8, 2012 4:54 AM
Answer

Tejas Kanani

Rank: Liferay Master

Posts: 653

Join Date: January 6, 2009

Recent Posts

Hi Nikhil,

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

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