disallow jannies from bypassing the chud award
parent
7ff30337f5
commit
f78fe1702e
|
@ -1392,6 +1392,9 @@ def remove_post(post_id, v):
|
|||
def approve_post(post_id, v):
|
||||
post = get_post(post_id)
|
||||
|
||||
if post.chudded:
|
||||
abort(400, "You can't bypass the chud award!")
|
||||
|
||||
if post.is_banned:
|
||||
ma=ModAction(
|
||||
kind="unban_post",
|
||||
|
@ -1638,6 +1641,9 @@ def remove_comment(c_id, v):
|
|||
def approve_comment(c_id, v):
|
||||
comment = get_comment(c_id)
|
||||
|
||||
if comment.chudded:
|
||||
abort(400, "You can't bypass the chud award!")
|
||||
|
||||
if comment.is_banned:
|
||||
ma=ModAction(
|
||||
kind="unban_comment",
|
||||
|
|
Loading…
Reference in New Issue