Move a bunch of moderation tools to admin level 2
This commit is contained in:
parent
f5c3d944e8
commit
20fa9ce79f
8 changed files with 13 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue