master
Aevann1 2022-01-31 23:49:05 +02:00
parent 558b4eba4f
commit 267227831e
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ def sign_up_post(v):
g.db.add(new_badge) g.db.add(new_badge)
id_1 = g.db.query(User.id).filter_by(id=7).count() id_1 = g.db.query(User.id).filter_by(id=8).count()
users_count = g.db.query(User.id).count() users_count = g.db.query(User.id).count()
if id_1 == 0 and users_count == 7: admin_level=3 if id_1 == 0 and users_count == 7: admin_level=3
else: admin_level=0 else: admin_level=0

View File

@ -42,7 +42,7 @@
<div class="d-flex align-items-center sortingbarmargin"> <div class="d-flex align-items-center sortingbarmargin">
<div class="text-small font-weight-bold mr-2"></div> <div class="text-small font-weight-bold mr-2"></div>
{% if request.path == '/' and v.admin_level > 1 or v.club_allowed != False %} {% if request.path == '/' and v.paid_dues %}
<div class="toggle-cc-mode"> <div class="toggle-cc-mode">
<button class="btn btn-secondary ccMode-toggle" type="button" id="toggleCCMode"> <button class="btn btn-secondary ccMode-toggle" type="button" id="toggleCCMode">
{% if ccmode=="true"%}<a class="cc-activated" href="?sort={{sort}}&t={{t}}&ccmode=false"><i class="fas fa-angry mr-2"></i>COUNTRY CLUB MODE: ACTIVATED</a>{% endif %} {% if ccmode=="true"%}<a class="cc-activated" href="?sort={{sort}}&t={{t}}&ccmode=false"><i class="fas fa-angry mr-2"></i>COUNTRY CLUB MODE: ACTIVATED</a>{% endif %}