From 8dd9045a3349c01cc1a05312f7e7518e0f5e950a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 30 Oct 2022 17:32:54 +0200 Subject: [PATCH] allow distinguishing other ppl's comments --- files/routes/admin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 928d963c6..3ab37fa8e 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1147,8 +1147,6 @@ def approve_post(post_id, v): def distinguish_post(post_id, v): post = get_post(post_id) - if post.author_id != v.id and v.admin_level < PERMS['POST_COMMENT_MODERATION']: abort(403) - if post.distinguish_level: post.distinguish_level = 0 kind = 'undistinguish_post' @@ -1340,8 +1338,6 @@ def admin_distinguish_comment(c_id, v): comment = get_comment(c_id, v=v) - if comment.author_id != v.id: abort(403) - if comment.distinguish_level: comment.distinguish_level = 0 kind = 'undistinguish_comment'