json.extract! @year, :id, :year major = @year.ec_major_school json.major_id major.id json.major_name major.name json.major_code major.code school = major.school json.school_id school.id json.school_name school.name can_manager = major.manager?(current_user) || school.manager?(current_user) || current_user.admin_or_business? json.can_manager can_manager