|
|
|
@ -38,13 +38,13 @@ class CoursesController < ApplicationController
|
|
|
|
|
:transfer_to_course_group, :delete_from_course, :export_member_scores_excel,
|
|
|
|
|
:search_users, :add_students_by_search, :get_historical_courses, :add_teacher_popup,
|
|
|
|
|
:add_teacher, :export_couser_info, :export_member_act_score,
|
|
|
|
|
:update_informs, :new_informs, :delete_informs, :switch_to_student, :move_to_category]
|
|
|
|
|
:update_informs, :new_informs, :delete_informs, :switch_to_student, :move_to_category,
|
|
|
|
|
:update_task_position, :tasks_list]
|
|
|
|
|
before_action :admin_allowed, only: [:set_invite_code_halt, :set_public_or_private, :change_course_admin,
|
|
|
|
|
:set_course_group, :create_group_by_importing_file]
|
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:graduation_group_list, :create_graduation_group, :join_graduation_group,
|
|
|
|
|
:change_course_teacher, :course_group_list, :change_member_role,:inform_up, :inform_down,
|
|
|
|
|
:teacher_application_review, :apply_teachers, :delete_course_teacher,
|
|
|
|
|
:update_task_position, :tasks_list]
|
|
|
|
|
:teacher_application_review, :apply_teachers, :delete_course_teacher]
|
|
|
|
|
before_action :validate_course_name, only: [:create, :update]
|
|
|
|
|
before_action :find_board, only: :board_list
|
|
|
|
|
before_action :validate_page_size, only: :mine
|
|
|
|
|