From 0dfff1f4f6fabcfaa7e12f01544fb1c86535f57c Mon Sep 17 00:00:00 2001 From: justcool393 Date: Wed, 5 Oct 2022 18:03:23 -0700 Subject: [PATCH] editing posts to JL3 (will be constantified soon) --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 73223a2a2..af5fc14c3 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -378,7 +378,7 @@ def edit_post(pid, v): body = sanitize_raw_body(request.values.get("body", "")) - if v.id != p.author_id and v.admin_level < PERMS['POST_COMMENT_MODERATION']: + if v.id != p.author_id and v.admin_level < 3: abort(403) if v.id == p.author_id: