diff --git a/files/routes/comments.py b/files/routes/comments.py index 66bcfe096..0320c6b26 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -368,7 +368,7 @@ def comment(v): @app.post("/edit_comment/") @limiter.limit("1/second;10/minute;100/hour;200/day") @limiter.limit("1/second;10/minute;100/hour;200/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') -@auth_required +@is_not_permabanned def edit_comment(cid, v): c = get_comment(cid, v=v) diff --git a/files/routes/posts.py b/files/routes/posts.py index ef3a7e3f5..bb5f3e98f 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -307,7 +307,7 @@ def morecomments(v, cid): @app.post("/edit_post/") @limiter.limit("1/second;10/minute;100/hour;200/day") @limiter.limit("1/second;10/minute;100/hour;200/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') -@auth_required +@is_not_permabanned def edit_post(pid, v): p = get_post(pid) if v.id != p.author_id and v.admin_level < PERMS['POST_EDITING']: