fsd
This commit is contained in:
parent
8c1e134132
commit
311bd853da
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ def award_post(pid, v):
|
|||
|
||||
author = post.author
|
||||
|
||||
if author.id in (PIZZASHILL_ID, DAD_ID):
|
||||
if author.id in (PIZZASHILL_ID, DAD_ID) and v.id not in (PIZZASHILL_ID, DAD_ID):
|
||||
return {"error": "This user is immune to awards."}, 403
|
||||
|
||||
if kind == "benefactor" and author.id == v.id:
|
||||
|
@ -391,7 +391,7 @@ def award_comment(cid, v):
|
|||
|
||||
author = c.author
|
||||
|
||||
if author.id in (PIZZASHILL_ID, DAD_ID):
|
||||
if author.id in (PIZZASHILL_ID, DAD_ID) and v.id not in (PIZZASHILL_ID, DAD_ID):
|
||||
return {"error": "This user is immune to awards."}, 403
|
||||
|
||||
if v.id != author.id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue