refactor User#has_role? to improve performance