#set($roleLocalServiceUtil = $serviceLocator.findService(“com.liferay.portal.service.RoleLocalService”))
#set($adminrole = $roleLocalServiceUtil.getRole($company_id, “Administrator”))

#set($hasadminrole = $roleLocalServiceUtil.hasUserRole($user_id, $getterUtil.getLong($adminrole.getRoleId())))

Leave a Reply