From 52e0f21c75f092dbb85fbaf983b0acd0c881a576 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Jun 2022 23:34:09 +0200 Subject: [PATCH] make /h/braincels jannies unable to exile ppl --- files/routes/subs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/subs.py b/files/routes/subs.py index d5693cdd69..f651f7ef54 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -17,6 +17,8 @@ def exile_post(v, pid): sub = p.sub if not sub: abort(400) + if sub == 'braincels': abort(403) + if not v.mods(sub): abort(403) u = p.author @@ -44,6 +46,8 @@ def exile_comment(v, cid): sub = c.post.sub if not sub: abort(400) + if sub == 'braincels': abort(403) + if not v.mods(sub): abort(403) u = c.author