Correct team validation in has_access (fixes GH-954)