Hi, this is old post, but i am still not getting the result that i want.
I am using liferay 6.2.0 M2 , and i created site and assign the owner and admin rights to that user. I just want if user is admin i want to show dockbar.
and i tried
1
2#if ( $is_signed_in )
3 #set ($rService = $serviceLocator.findService("com.liferay.portal.service.RoleService"))
4 #set ($usrRoles = $rService.getUserRoles( $user_id ))
5 #foreach( $usrRole in $usrRoles )
6 #if ( $usrRole.getName() == "Administrator" )
7 #dockbar()
8 #end
9 #end
10#end
and this also
1
2$permissionChecker.isCompanyAdmin($company_id)
but both way i can't get my dockbar for that admin user, i can get dockbar for test user only..
Please sign in to flag this as inappropriate.