访问权限的判断

dev_SaaS
cxt 6 years ago
parent b1a79f27ca
commit a05f1f4739

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

Loading…
Cancel
Save