Handle optional but sometimes required project_id and team_slug in has_access