From 6a2b57155ccb80b826f6978d27b85372543ecefa Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 22 Sep 2021 17:23:56 +0200 Subject: [PATCH] df --- files/routes/awards.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index b2189c4fab..cd7fc636fe 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -188,8 +188,7 @@ ALLOW_MULTIPLE = ( @auth_required def award_post(pid, v): - if v.is_suspended and v.unban_utc == 0: - return {"error": "forbidden."}, 403 + if v.is_suspended and v.unban_utc == 0: return {"error": "forbidden."}, 403 kind = request.values.get("kind", "") @@ -252,8 +251,7 @@ def award_post(pid, v): @auth_required def award_comment(cid, v): - if v.is_suspended and v.unban_utc == 0: - return {"error": "forbidden"}, 403 + if v.is_suspended and v.unban_utc == 0: return {"error": "forbidden"}, 403 kind = request.values.get("kind", "")