Skip to content

Commit

Permalink
Fix 500 error
Browse files Browse the repository at this point in the history
It was caused by a missing current_user
  • Loading branch information
mjacobus committed Sep 16, 2021
1 parent 9ebe579 commit 4f24515
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/components/base/context_menu_component.rb
Expand Up @@ -48,5 +48,9 @@ def visited_by_owner?
def context
get(:context)
end

def current_user
get(:current_user) || GuestUser.new
end
end
end

0 comments on commit 4f24515

Please sign in to comment.