dev_SaaS
cxt 6 years ago
parent 28aca2571a
commit 8470090933

@ -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 || (User.current.ec_school.present? && User.current.ec_school == major.school.id)
allow_visit: User.current.admin? || (User.current.ec_school.present? && User.current.ec_school == major.school.id)
}
end

Loading…
Cancel
Save