From 08f6bd8befa266d40f56b143193c8c1ca5fb2716 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 11 Jul 2020 03:35:14 +0100 Subject: Move DELETE_REPLY permission to ThreadReply --- app/blueprints/threads/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/blueprints/threads') 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": -- cgit v1.2.3