From a05f1f4739265e2ea4714c884961b83b091c8d6c Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 12 Mar 2019 20:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E9=97=AE=E6=9D=83=E9=99=90=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_major_schools_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/ec_major_schools_controller.rb b/app/controllers/ec_major_schools_controller.rb index e22114da..d2d1a978 100644 --- a/app/controllers/ec_major_schools_controller.rb +++ b/app/controllers/ec_major_schools_controller.rb @@ -125,7 +125,8 @@ class EcMajorSchoolsController < ApplicationController evaluation_methods_url: evaluation_methods_url, competition_calculation_info_url: competition_calculation_info_url, score_level_setting_url: score_level_setting_url, - example_major: example_major + example_major: example_major, + allow_visit: User.current.admin? || User.current.ec_school.present?, } end