From e824b844f6a3b285384deb5bb8b3d7a78b2d91d7 Mon Sep 17 00:00:00 2001 From: Akif9748 Date: Sun, 9 Oct 2022 19:44:19 +0300 Subject: [PATCH] fix for not login --- views/thread.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/thread.ejs b/views/thread.ejs index 7f40045..e8ff01f 100644 --- a/views/thread.ejs +++ b/views/thread.ejs @@ -28,13 +28,13 @@
- <% if ((user.id === thread.authorID || user.admin ) && thread.state !== "DELETED"){ %> + <% if (user && (user.id === thread.authorID || user.admin ) && thread.state !== "DELETED"){ %> DELETE EDIT <% } else if (thread.state == "DELETED") { %>

This thread has been deleted

- UNDELETE - <% }; %> + UNDELETE + <% }; %>