aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-11 03:35:14 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-11 03:35:14 +0100
commit08f6bd8befa266d40f56b143193c8c1ca5fb2716 (patch)
tree193991a67c097e105b57e3f5a04e60eacb736c07 /app/blueprints/threads
parent31b8a7931bdb95b296e236c11705206507b035d8 (diff)
downloadcheatdb-08f6bd8befa266d40f56b143193c8c1ca5fb2716.tar.xz
Move DELETE_REPLY permission to ThreadReply
Diffstat (limited to 'app/blueprints/threads')
-rw-r--r--app/blueprints/threads/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index 28a7fde..113cdfa 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -126,7 +126,7 @@ def delete_reply(id):
flash("Cannot delete thread opening post!", "danger")
return redirect(thread.getViewURL())
- if not thread.checkPerm(current_user, Permission.DELETE_REPLY):
+ if not reply.checkPerm(current_user, Permission.DELETE_REPLY):
abort(403)
if request.method == "GET":