@ -126,7 +126,7 @@ class EcMajorSchoolsController < ApplicationController
competition_calculation_info_url: competition_calculation_info_url,
score_level_setting_url: score_level_setting_url,
example_major: example_major,
allow_visit: User.current.admin? || User.current.ec_school.present?,
allow_visit: User.current || (User.current.ec_school.present? && User.current.ec_school == major.school.id)
}
end