From 311bd853da8954deb73206ead2a92ca8e31b97fe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 15 Apr 2022 17:05:19 +0200 Subject: [PATCH] fsd --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 84ce7cc3b..b0ce9364f 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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: