app: added a check to verify if the user has access to team.