Fix 500 when not logged in
This commit is contained in:
parent
f9e42436ea
commit
4c6ad5f789
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue