NameError: undefined local variable or method `current_user' for #<Gitlab::BlamePresenter:0x00007fb159b1b6f8>
Sentry error: https://sentry.gitlab.net/gitlab/staginggitlabcom/issues/3130097 appears to be caused by !75921 (merged)
NameError: undefined local variable or method `current_user' for #<Gitlab::BlamePresenter:0x00007fb159b1b6f8>
Did you mean? current_time
app/helpers/avatars_helper.rb:40:in `avatar_icon_for_user'
return default_avatar if blocked_or_unconfirmed?(user) && !can_admin?(current_user)
app/helpers/avatars_helper.rb:129:in `user_avatar_url_for'
return avatar_icon_for_user(options[:user], options[:size], only_path: only_path) if options[:user]
app/helpers/avatars_helper.rb:68:in `user_avatar_without_link'
avatar_url = user_avatar_url_for(**options.merge(size: avatar_size))
app/helpers/avatars_helper.rb:98:in `user_avatar'
avatar = user_avatar_without_link(options)
app/helpers/avatars_helper.rb:56:in `author_avatar'
user_avatar(options.merge({
...
(158 additional frame(s) were not displayed)
Steps to reproduce
- Navigate to https://staging.gitlab.com/gitlab-org/gitlab/-/blame/master/README.md on Staging
or
- Navigate to https://gitlab.com/gitlab-org/gitlab/-/blame/master/Gemfile.lock on Production