disallow brocels from disabling stealth mode

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-20 21:41:58 +02:00
parent 5f9dac55ab
commit 8c99bebd87
1 changed files with 1 additions and 5 deletions

View File

@ -17,8 +17,6 @@ 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
@ -46,8 +44,6 @@ 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
@ -518,7 +514,7 @@ def sub_stealth(v, sub):
sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
if not sub: abort(404)
if sub.name == 'smuggies': abort(403)
if sub.name in ('smuggies','braincels'): abort(403)
if not v.mods(sub.name): abort(403)
sub.stealth = not sub.stealth