added function hasRole to RoleModule