瀏覽代碼

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

Andrei 2 年之前
父節點
當前提交
8a727c9253
共有 1 個文件被更改,包括 2 次插入0 次删除
  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>