Procházet zdrojové kódy

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

Andrei před 2 roky
rodič
revize
8a727c9253
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      templates/admin.html

+ 2 - 0
templates/admin.html

@@ -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>