prevent jannies of smuggies and ye24 from turning off stealth mode

pull/90/head
Aevann 2023-01-20 07:15:08 +02:00
parent 9f0b238370
commit 0ab0b9cbe6
1 changed files with 2 additions and 1 deletions

View File

@ -662,7 +662,8 @@ def hole_unpin(v:User, pid):
@is_not_permabanned
def sub_stealth(v:User, sub):
sub = get_sub_by_name(sub)
if sub.name == 'braincels': abort(403)
if sub.name in {'braincels','smuggies','ye24'}:
abort(403)
if not v.mods(sub.name): abort(403)
sub.stealth = not sub.stealth