forked from rDrama/rDrama
1
0
Fork 0

make it so u cant add hole mods in WPD

master
Aevann1 2022-09-02 01:54:05 +02:00
parent 73ee24e217
commit dcf8892465
1 changed files with 2 additions and 0 deletions

View File

@ -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