From cefb2cfad053da11156c234abb579a06e234b028 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 8 Oct 2021 17:11:22 +0200 Subject: [PATCH] gf --- files/routes/comments.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 0c298c460..09552ada4 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -767,11 +767,9 @@ def delete_comment(cid, v): c = g.db.query(Comment).options(lazyload('*')).filter_by(id=cid).first() - if not c: - abort(404) + if not c: abort(404) - if not c.author_id == v.id: - abort(403) + if not c.author_id == v.id: abort(403) c.deleted_utc = int(time.time())