Exception when non-logged in users view merge request
Created by: jasonblanchard
Steps to reproduce:
- Sign in and create a merge request
- Visit the
Projects::MergeRequestsController#show
page for the merge request as a non-logged in user.
Looks like the Gitlab::GitAccess.can_push_to_branch?
is not guarding against a nil user:
