diff --git a/files/routes/search.py b/files/routes/search.py index 8f543a8aa..24257bbaf 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -222,7 +222,7 @@ def searchcomments(v): comments = apply_time_filter(t, comments, Comment) - if v.admin_level < 2: + if v.admin_level < PERMS['POST_COMMENT_MODERATION']: private = [x[0] for x in g.db.query(Submission.id).filter(Submission.private == True).all()] comments = comments.filter(Comment.is_banned==False, Comment.deleted_utc == 0, Comment.parent_submission.notin_(private)) diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 4aed29a6b..7db0111d4 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -55,7 +55,7 @@ Unpin from /h/{{p.sub}} {% endif %} - {% if FEATURES['COUNTRY_CLUB'] and (v.admin_level > 1 or v.id == p.author_id) %} + {% if FEATURES['COUNTRY_CLUB'] and (v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or v.id == p.author_id) %} Mark club Unmark club {% endif %} @@ -98,7 +98,7 @@ Unmark +18 {% endif %} - {% if v.admin_level > 1 and v.id != p.author_id %} + {% if v.admin_level >= PERMS['USER_BAN'] and v.id != p.author_id %} Ban user Unban user {% endif %}