forked from MarseyWorld/MarseyWorld
sfd
parent
29be7dcfe5
commit
7f0762a4c0
|
@ -875,12 +875,11 @@ def unban_user(user_id, v):
|
|||
user.ban_reason = None
|
||||
g.db.add(user)
|
||||
|
||||
if request.values.get("alts"):
|
||||
for x in user.alts:
|
||||
x.is_banned = 0
|
||||
x.unban_utc = 0
|
||||
x.ban_evade = 0
|
||||
g.db.add(x)
|
||||
for x in user.alts:
|
||||
x.is_banned = 0
|
||||
x.unban_utc = 0
|
||||
x.ban_evade = 0
|
||||
g.db.add(x)
|
||||
|
||||
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.")
|
||||
|
|
|
@ -229,10 +229,6 @@
|
|||
<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="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">
|
||||
</form>
|
||||
{% else %}
|
||||
|
@ -507,12 +503,6 @@
|
|||
<form action="/unban_user/{{u.id}}" method="post">
|
||||
<input autocomplete="off" type="hidden" name="formkey", value="{{v.formkey}}">
|
||||
<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">
|
||||
</form>
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in New Issue