Skip to content

Commit

Permalink
Fix 500 when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
raccube committed May 7, 2023
1 parent f9e4243 commit 4c6ad5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_hotkeys.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
%kbd
%kbd g
%kbd i
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user.mod?
- if APP_CONFIG.dig(:features, :discover, :enabled) || current_user&.mod?
%li.list-group-item
= t("navigation.discover")
%kbd
Expand Down

0 comments on commit 4c6ad5f

Please sign in to comment.