From 4859ce704611e38c321725a9659dae963758ba7d Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 12 Mar 2019 20:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index 5eb29b73..3634ca28 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -77,7 +77,8 @@ class EcCoursesController < ApplicationController end calculation_data << {first_level: first_level, first_leval_data: first_leval_data} end - render :json => {calculation_data: calculation_data, calculation_value: @year.calculation_value, course_ids: course_ids.uniq} + render :json => {calculation_data: calculation_data, calculation_value: @year.calculation_value, course_ids: course_ids.uniq, + is_manager: @template_major} end # 课程目标配置