]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/macros/threads.html
Move DELETE_REPLY permission to ThreadReply
[cheatdb.git] / app / templates / macros / threads.html
index 32acbc4c7625b7356ea8bc16ab3632ddcb4ff043..e94cdedad4c17d0eb37677e581c95a02946def83 100644 (file)
@@ -22,7 +22,7 @@
                                </div>
 
                                <div class="card-body">
-                                       {% if r != thread.replies[0] and thread.checkPerm(current_user, "DELETE_REPLY") %}
+                                       {% if r.checkPerm(current_user, "DELETE_REPLY") %}
                                                <a class="float-right btn btn-secondary btn-sm"
                                                                href="{{ url_for('threads.delete_reply', id=thread.id, reply=r.id) }}">
                                                        <i class="fas fa-trash"></i>