Move a bunch of moderation tools to admin level 2

This commit is contained in:
Ben Rog-Wilhelm 2022-09-06 18:42:36 -05:00 committed by Ben Rog-Wilhelm
parent f5c3d944e8
commit 20fa9ce79f
8 changed files with 13 additions and 17 deletions

View file

@ -1335,7 +1335,7 @@ def sticky_post(post_id, v):
if post and not post.stickied:
pins = g.db.query(Submission.id).filter(Submission.stickied != None, Submission.is_banned == False).count()
if pins > 2:
if v.admin_level > 2:
if v.admin_level > 1:
post.stickied = v.username
post.stickied_utc = int(time.time()) + 3600
else: return {"error": "Can't exceed 3 pinned posts limit!"}, 403