AEROGEAR-977 "Refactor hasRoles"