remotes/1693045480750635534/spooky-22
Aevann1 2021-09-13 23:22:01 +02:00
parent c724f5e87c
commit 670fe13697
2 changed files with 5 additions and 12 deletions

View File

@ -60,7 +60,7 @@ def toggle_club_ban(v, username):
u.club_banned = not u.club_banned
for x in u.alts:
x.club_banned = not x.club_banned
x.club_banned = u.club_banned
return {
"message": f"@{username} has been kicked from the country club. Deserved." if u.club_banned else f"@{username}'s ban from club removed"

View File

@ -328,12 +328,8 @@
<input type="submit" class="btn btn-danger" value="Remove User's Content">
</form>
{% if u.club_banned %}
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
{% else %}
<button class="btn btn-danger" onclick="post_toast('/@{{u.username}}/club_ban')">Bar from club</button>
{% endif %}
{% endif %}
<button id="banclub" class="{% if u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub','unbanclub')">Ban from club</button>
<button id="unbanclub" class="{% if not u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub','unbanclub')">Unban from club</button>
<pre></pre>
<p>User ID: {{u.id}}</p>
{% if v and v.admin_level >=4 %}
@ -513,11 +509,8 @@
{% if v.admin_level > 1 %}
{% if u.club_banned %}
<button class="btn btn-success" onclick="post_toast('/@{{u.username}}/club_ban')">Grant club access</button>
{% else %}
<button class="btn btn-danger" onclick="post_toast('/@{{u.username}}/club_ban')">Bar from club</button>
{% endif %}
<button id="banclub2" class="{% if u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub2','unbanclub2')">Ban from club</button>
<button id="unbanclub2" class="{% if not u.club_banned %}d-none{% endif %} btn btn-success" onclick="post_toast2('/@{{u.username}}/club_ban','banclub2','unbanclub2')">Unban from club</button>
<br><br>
<div class="body d-lg-flex border-bottom">