fix for not login

This commit is contained in:
Akif9748 2022-10-09 19:44:19 +03:00
parent cc8d64af5d
commit e824b844f6

View file

@ -28,7 +28,7 @@
</div>
<div style="text-align:center;padding:8px">
<% if ((user.id === thread.authorID || user.admin ) && thread.state !== "DELETED"){ %>
<% if (user && (user.id === thread.authorID || user.admin ) && thread.state !== "DELETED"){ %>
<a onclick="delete_thread('<%= thread.id %>')" class="btn-outline-primary">DELETE</a>
<a onclick="edit_thread('<%= thread.id %>')" class="btn-outline-primary">EDIT</a>
<% } else if (thread.state == "DELETED") { %>