Hide control panel after acccess to liferay 6.1

-Into portal_normal.vm  change this code:

#if ($is_signed_in)
 #dockbar()
#end
 
with this one

#if (($is_signed_in) && $permissionChecker.isCompanyAdmin($company_id))
 #dockbar()
#end

it will hide dockbar for users except admin

Blogs
Dear Tauseef,

Your blogs are really very useful. But it will be much appreciated by everyone if you can give the intent of making these code changes with some kind of explanations of real world scenarios and screen shots. This will help everyone to get the context of the subject under discussion.

Another this in this blog is you've mentioned that this code snippet is for Liferay 6.1. With Liferay 6.2 being in existence for close to two years now, it will be great if your code is made to work with Liferay 6.2 with backward compatibility with Liferay 6.1.

Ahamed Hasan
Author, Liferay Cookbook
Hello Ahmed,
Very thanks for this Importent Post, Its really helpful to us.
I also want to post some blog here, but i would really appriciate if you tell me how can i change this tag "comminuty blog" to "Staff blog".
I really really want to post my blog as a staff's blog emoticon