|
|
@ -25,11 +25,11 @@ class CoursesController < ApplicationController
|
|
|
|
before_action :teacher_allowed, only: [:update, :destroy, :settings, :search_teacher_candidate,
|
|
|
|
before_action :teacher_allowed, only: [:update, :destroy, :settings, :search_teacher_candidate,
|
|
|
|
:transfer_to_course_group, :delete_from_course,
|
|
|
|
:transfer_to_course_group, :delete_from_course,
|
|
|
|
:search_users, :add_students_by_search, :get_historical_courses, :add_teacher_popup, :add_teacher]
|
|
|
|
: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, :join_graduation_group,
|
|
|
|
before_action :admin_allowed, only: [:set_invite_code_halt, :set_public_or_private, :change_course_admin,
|
|
|
|
:set_course_group, :change_course_admin, :change_course_teacher,
|
|
|
|
:set_course_group, :delete_course_teacher, :teacher_application_review,
|
|
|
|
:delete_course_teacher, :teacher_application_review, :create_group_by_importing_file]
|
|
|
|
:create_group_by_importing_file]
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:graduation_group_list, :create_graduation_group, :join_graduation_group,
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:graduation_group_list, :create_graduation_group, :join_graduation_group,
|
|
|
|
:export_member_scores_excel, :course_group_list]
|
|
|
|
:change_course_teacher, :export_member_scores_excel, :course_group_list]
|
|
|
|
before_action :validate_course_name, only: [:create, :update]
|
|
|
|
before_action :validate_course_name, only: [:create, :update]
|
|
|
|
before_action :find_board, only: :board_list
|
|
|
|
before_action :find_board, only: :board_list
|
|
|
|
before_action :validate_page_size, only: :mine
|
|
|
|
before_action :validate_page_size, only: :mine
|
|
|
|