|
|
|
@ -26,12 +26,14 @@ class CoursesController < ApplicationController
|
|
|
|
|
:base_info, :get_historical_courses, :create_group_by_importing_file,
|
|
|
|
|
:attahcment_category_list,:export_member_scores_excel, :duplicate_course,
|
|
|
|
|
:switch_to_teacher, :switch_to_assistant, :switch_to_student, :exit_course,
|
|
|
|
|
:informs, :update_informs, :join_excellent_course, :online_learning]
|
|
|
|
|
:informs, :update_informs, :join_excellent_course, :online_learning,
|
|
|
|
|
:update_task_position, :tasks_list]
|
|
|
|
|
before_action :teacher_allowed, only: [:update, :destroy, :settings, :search_teacher_candidate,
|
|
|
|
|
:transfer_to_course_group, :delete_from_course,
|
|
|
|
|
:search_users, :add_students_by_search, :get_historical_courses, :add_teacher_popup, :add_teacher]
|
|
|
|
|
before_action :admin_allowed, only: [:set_invite_code_halt, :set_public_or_private, :change_course_admin,
|
|
|
|
|
:set_course_group, :create_group_by_importing_file, :update_informs]
|
|
|
|
|
:set_course_group, :create_group_by_importing_file, :update_informs,
|
|
|
|
|
:update_task_position, :tasks_list]
|
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:graduation_group_list, :create_graduation_group, :join_graduation_group,
|
|
|
|
|
:change_course_teacher, :export_member_scores_excel, :course_group_list,
|
|
|
|
|
:teacher_application_review, :apply_teachers, :delete_course_teacher]
|
|
|
|
@ -1115,6 +1117,14 @@ class CoursesController < ApplicationController
|
|
|
|
|
render_ok(count: count, courses: courses.select(:id, :name).as_json)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def tasks_list
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update_task_position
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
# Use callbacks to share common setup or constraints between actions.
|
|
|
|
|