mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 20:10:40 +03:00
fix for not login
This commit is contained in:
parent
cc8d64af5d
commit
e824b844f6
1 changed files with 3 additions and 3 deletions
|
@ -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") { %>
|
||||
|
|
Loading…
Reference in a new issue