Getting the users from the Theme
set ($isAdmin = false)
#if ($is_signed_in)
#set ($rService = $serviceLocator.findService("com.liferay.portal.service.RoleService"))
#set ($usrRoles = $rService.getUserRoles( $user_id ))
#foreach( $usrRole in $usrRoles )
#if ( $usrRole.getName() == "Administrator" )
#set ($isAdmin = true)
#end
#end
Comments
Post a Comment