]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/blueprints/threads/__init__.py
Move DELETE_REPLY permission to ThreadReply
[cheatdb.git] / app / blueprints / threads / __init__.py
index 28a7fde72de1f1937067126550baeac74488cc90..113cdfac11ad9567f543486afeb0af4aa1b83322 100644 (file)
@@ -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":