Updated hasRole().