mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
fix for nil user
This commit is contained in:
parent
2a9cbb0ff0
commit
1b774dfae3
1 changed files with 1 additions and 1 deletions
|
@ -107,5 +107,5 @@ header.header
|
||||||
nav.header.header--secondary
|
nav.header.header--secondary
|
||||||
.flex.flex--centered.flex--spaced-out.flex--wrap
|
.flex.flex--centered.flex--spaced-out.flex--wrap
|
||||||
= render PhilomenaWeb.LayoutView, "_header_navigation.html", assigns
|
= 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
|
= render PhilomenaWeb.LayoutView, "_header_staff_links.html", assigns
|
||||||
|
|
Loading…
Reference in a new issue