Make role_for work with teams