From dcf8892465ced0ec2f504bbad9732c220562e582 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 2 Sep 2022 01:54:05 +0200 Subject: [PATCH] make it so u cant add hole mods in WPD --- files/routes/subs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/subs.py b/files/routes/subs.py index bcd779c83..8e79bc65d 100644 --- a/files/routes/subs.py +++ b/files/routes/subs.py @@ -229,6 +229,8 @@ def sub_followers(v, sub): @limiter.limit("1/second;5/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}') @is_not_permabanned def add_mod(v, sub): + if SITE_NAME == 'WPD': abort(403) + sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none() if not sub: abort(404) sub = sub.name