Fix 500 when not logged in
This commit is contained in:
parent
f9e42436ea
commit
4c6ad5f789
|
@ -22,7 +22,7 @@
|
||||||
%kbd
|
%kbd
|
||||||
%kbd g
|
%kbd g
|
||||||
%kbd i
|
%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
|
%li.list-group-item
|
||||||
= t("navigation.discover")
|
= t("navigation.discover")
|
||||||
%kbd
|
%kbd
|
||||||
|
|
Loading…
Reference in New Issue