forked from rDrama/rDrama
make /h/braincels jannies unable to exile ppl
parent
58867084af
commit
52e0f21c75
|
@ -17,6 +17,8 @@ def exile_post(v, pid):
|
||||||
sub = p.sub
|
sub = p.sub
|
||||||
if not sub: abort(400)
|
if not sub: abort(400)
|
||||||
|
|
||||||
|
if sub == 'braincels': abort(403)
|
||||||
|
|
||||||
if not v.mods(sub): abort(403)
|
if not v.mods(sub): abort(403)
|
||||||
|
|
||||||
u = p.author
|
u = p.author
|
||||||
|
@ -44,6 +46,8 @@ def exile_comment(v, cid):
|
||||||
sub = c.post.sub
|
sub = c.post.sub
|
||||||
if not sub: abort(400)
|
if not sub: abort(400)
|
||||||
|
|
||||||
|
if sub == 'braincels': abort(403)
|
||||||
|
|
||||||
if not v.mods(sub): abort(403)
|
if not v.mods(sub): abort(403)
|
||||||
|
|
||||||
u = c.author
|
u = c.author
|
||||||
|
|
Loading…
Reference in New Issue