Render 404 when polling commit notes without having permissions
closes #39176 (closed)
Fixes https://sentry.gitlap.com/gitlab/gitlabcom/issues/86779/ which is happening when polling commit notes
without having permissions. If you check this error the user no longer have access to the repository.
Edited by Felipe Artur