dev_SaaS
cxt 6 years ago
parent d7b1e1986f
commit e58d7693ec

@ -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

Loading…
Cancel
Save