From f5e6b4c46a83eb71a75e423d822014b1ba8c0bee Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Mon, 1 Apr 2019 16:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81=E7=9A=84?= =?UTF-8?q?=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ecs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ecs_controller.rb b/app/controllers/ecs_controller.rb index 97cbc298..172d13fc 100644 --- a/app/controllers/ecs_controller.rb +++ b/app/controllers/ecs_controller.rb @@ -18,7 +18,7 @@ class EcsController < ApplicationController @major_count = @major_schools.count - if @major_count == 0 + if !@is_school_manager && @major_count == 0 render_403 else if params[:search].present?