sfd
This commit is contained in:
parent
da0dd585fb
commit
56b3b2037c
2 changed files with 5 additions and 16 deletions
|
@ -875,12 +875,11 @@ def unban_user(user_id, v):
|
||||||
user.ban_reason = None
|
user.ban_reason = None
|
||||||
g.db.add(user)
|
g.db.add(user)
|
||||||
|
|
||||||
if request.values.get("alts"):
|
for x in user.alts:
|
||||||
for x in user.alts:
|
x.is_banned = 0
|
||||||
x.is_banned = 0
|
x.unban_utc = 0
|
||||||
x.unban_utc = 0
|
x.ban_evade = 0
|
||||||
x.ban_evade = 0
|
g.db.add(x)
|
||||||
g.db.add(x)
|
|
||||||
|
|
||||||
send_repeatable_notification(user.id,
|
send_repeatable_notification(user.id,
|
||||||
"Your account has been reinstated. Please carefully review and abide by the [rules](/post/2510) to ensure that you don't get suspended again.")
|
"Your account has been reinstated. Please carefully review and abide by the [rules](/post/2510) to ensure that you don't get suspended again.")
|
||||||
|
|
|
@ -229,10 +229,6 @@
|
||||||
<form action="/unban_user/{{u.id}}/" method="post" action="">
|
<form action="/unban_user/{{u.id}}/" method="post" action="">
|
||||||
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
<input autocomplete="off" type="hidden" name="formkey" value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input autocomplete="off" type="hidden" name="redir" value="true">
|
||||||
<div class="custom-control custom-checkbox">
|
|
||||||
<input autocomplete="off" type="checkbox" id="alts-1-desktop" class="custom-control-input" name="alts" value="1">
|
|
||||||
<label class="custom-control-label" for="alts-1-desktop">Include alts</label>
|
|
||||||
</div>
|
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -507,12 +503,6 @@
|
||||||
<form action="/unban_user/{{u.id}}" method="post">
|
<form action="/unban_user/{{u.id}}" method="post">
|
||||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<input autocomplete="off" type="hidden" name="redir" value="true">
|
<input autocomplete="off" type="hidden" name="redir" value="true">
|
||||||
<br>
|
|
||||||
<div class="custom-control custom-checkbox">
|
|
||||||
<input autocomplete="off" type="checkbox" id="alts-1-mobile" class="custom-control-input" name="alts" value="1">
|
|
||||||
<label class="custom-control-label" for="alts-1-mobile">Include alts</label>
|
|
||||||
</div>
|
|
||||||
<br >
|
|
||||||
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
<input autocomplete="off" type="submit" class="btn btn-success" value="Unban user">
|
||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue