From 2ab2b1e0e962cb932fda601bde5c4cab5f1402ba Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 6 Nov 2018 04:33:37 +0900 Subject: [PATCH] Fix post page for logged out users --- pages/post/post.pixy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/post/post.pixy b/pages/post/post.pixy index 4c38aeb5..e035c4f6 100644 --- a/pages/post/post.pixy +++ b/pages/post/post.pixy @@ -4,7 +4,7 @@ component Post(post *arn.Post, user *arn.User) Postable(post, user, true, "", "") .side-note-container.mountable - if user.Role == "admin" + if user != nil && user.Role == "admin" a.side-note.tip(href=post.Link() + "/edit", aria-label="Admin Edit") Icon("edit")