Убрал возможность бана админов

This commit is contained in:
Andrei 2023-03-09 22:08:33 +05:00
parent 2c1119a7ae
commit 8a727c9253

View File

@ -19,6 +19,7 @@
</option>
{% endfor %}
</select>
{% if user.role != 1 %}
<div class="user_active">
<label class="active_label">Активирован</label>
<input class="choose_active" name="active_{{user.id}}" type="checkbox" value="y" {% if user.activated == 1 %}checked="yes"{% endif %}>
@ -27,6 +28,7 @@
<label class="banned_label">Бан</label>
<input class="choose_banned" name="banned_{{user.id}}" type="checkbox" value="y" {% if user.banned == 1 %}checked="yes"{% endif %}>
</div>
{% endif %}
</div>
{% endfor %}
</div>