diff --git a/lib/philomena_web/templates/layout/_header.html.slime b/lib/philomena_web/templates/layout/_header.html.slime index 167b72e2..3d7d0d4b 100644 --- a/lib/philomena_web/templates/layout/_header.html.slime +++ b/lib/philomena_web/templates/layout/_header.html.slime @@ -107,5 +107,5 @@ header.header nav.header.header--secondary .flex.flex--centered.flex--spaced-out.flex--wrap = render PhilomenaWeb.LayoutView, "_header_navigation.html", assigns - = if @current_user.role != "user" do + = if !is_nil(@current_user) and @current_user.role != "user" do = render PhilomenaWeb.LayoutView, "_header_staff_links.html", assigns