fix for nil user

This commit is contained in:
byte[] 2019-12-06 17:59:39 -05:00
parent 2a9cbb0ff0
commit 1b774dfae3

View file

@ -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