diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-07-11 03:35:14 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-07-11 03:35:14 +0100 |
| commit | 08f6bd8befa266d40f56b143193c8c1ca5fb2716 (patch) | |
| tree | 193991a67c097e105b57e3f5a04e60eacb736c07 /app/templates/macros/threads.html | |
| parent | 31b8a7931bdb95b296e236c11705206507b035d8 (diff) | |
| download | cheatdb-08f6bd8befa266d40f56b143193c8c1ca5fb2716.tar.xz | |
Move DELETE_REPLY permission to ThreadReply
Diffstat (limited to 'app/templates/macros/threads.html')
| -rw-r--r-- | app/templates/macros/threads.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 32acbc4..e94cded 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -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> |
