From 2b358ddcfc04a4c593e094aec9fa10a3460a2b0e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 12 Dec 2022 22:45:11 +0200 Subject: [PATCH] prevent the manlet from deleting his comments --- files/routes/comments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 257e8ee70a..903fdbee06 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -430,6 +430,7 @@ def edit_comment(cid, v): @auth_required @ratelimit_user() def delete_comment(cid, v): + if v.id == 253: abort(403) c = get_comment(cid, v=v) if not c.deleted_utc: if c.author_id != v.id: abort(403)