From 2f9860d05cf721c60386a4d4b8b3152f73c5e4ab Mon Sep 17 00:00:00 2001
From: cxt
Date: Tue, 12 Mar 2019 19:53:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E4=B8=9A=E7=AE=A1=E7=90=86=E5=91=98?=
=?UTF-8?q?=E6=97=A0=E5=88=A0=E9=99=A4=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/ecs/_department_list.html.erb | 2 +-
app/views/ecs/_school_manager.html.erb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/ecs/_department_list.html.erb b/app/views/ecs/_department_list.html.erb
index 54590da4..4216372e 100644
--- a/app/views/ecs/_department_list.html.erb
+++ b/app/views/ecs/_department_list.html.erb
@@ -29,7 +29,7 @@
- <% if major_manager %>
+ <% if @is_school_manager %>
删除
<% end %>
<%= major_manager ? "配置" : "查看" %>
diff --git a/app/views/ecs/_school_manager.html.erb b/app/views/ecs/_school_manager.html.erb
index ea46870a..a94fcf01 100644
--- a/app/views/ecs/_school_manager.html.erb
+++ b/app/views/ecs/_school_manager.html.erb
@@ -1,6 +1,6 @@
<% major_school.users.each do |user| %>
<%= user.show_real_name %>
- <% if @is_school_manager || major_school.users.where(:id => User.current.id).count > 0 %>
+ <% if @is_school_manager %>
<% end %>