Fix snippets API not working with visibility level Closes #66050 See merge request gitlab-org/gitlab-ce!32286