掲示板

How to hide the dockbar for Site Members

11年前 に Nikhil Sood によって更新されました。

How to hide the dockbar for Site Members

Junior Member 投稿: 41 参加年月日: 09/08/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
11年前 に Samuel Kong によって更新されました。

RE: How to hide the dockbar for Site Members

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Try looking into using
$permissionChecker.isGroupAdmin(groupId)
where groupId is the groupId for your site.
11年前 に Nikhil Sood によって更新されました。

RE: How to hide the dockbar for Site Members

Junior Member 投稿: 41 参加年月日: 09/08/12 最新の投稿
Hi Samuel,

Thanks for your reply.

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

Thanks,
Nikhil
thumbnail
11年前 に Tejas Kanani によって更新されました。

RE: How to hide the dockbar for Site Members

Liferay Master 投稿: 654 参加年月日: 09/01/06 最新の投稿
Hi Nikhil,

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

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