aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints
diff options
context:
space:
mode:
Diffstat (limited to 'app/blueprints')
-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":