ActionView::Template::Error: undefined method `admin?' for nil:NilClass
Created by @rymai.
https://sentry.gitlap.com/gitlab/gitlabcom/issues/19094/
NoMethodError: undefined method `admin?' for nil:NilClass
app/views/snippets/_actions.html.haml:11:in `_app_views_snippets__actions_html_haml__3161841188027491145_70283429701900'
- if @snippet.submittable_as_spam? && current_user.admin?
app/views/shared/snippets/_header.html.haml:17:in `_app_views_shared_snippets__header_html_haml___2698063372984414041_70283423827780'
= render "snippets/actions"
app/views/snippets/show.html.haml:3:in `_app_views_snippets_show_html_haml__3841612777218536371_70283423475420'
= render 'shared/snippets/header'
lib/gitlab/middleware/multipart.rb:93:in `call'
return @app.call(env) if encoded_message.blank?
lib/gitlab/request_profiler/middleware.rb:15:in `call'
@app.call(env)
...
(166 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `admin?' for nil:NilClass
ActionView::Template::Error: undefined method `admin?' for nil:NilClass
/cc @smcgivern