From 4c6ad5f789ed6ac549340aa75b56de4c6262de05 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 7 May 2023 15:10:31 +0200 Subject: [PATCH] Fix 500 when not logged in --- app/views/shared/_hotkeys.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_hotkeys.html.haml b/app/views/shared/_hotkeys.html.haml index a4109569..e62c008b 100644 --- a/app/views/shared/_hotkeys.html.haml +++ b/app/views/shared/_hotkeys.html.haml @@ -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