实训作业--调整排序、作业重命名功能权限修改

courseware
cxt 5 years ago
parent c22eff9d4f
commit 27bf9b3fd3

@ -40,11 +40,11 @@ class CoursesController < ApplicationController
:add_teacher, :export_couser_info, :export_member_act_score, :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]
before_action :admin_allowed, only: [:set_invite_code_halt, :set_public_or_private, :change_course_admin, before_action :admin_allowed, only: [:set_invite_code_halt, :set_public_or_private, :change_course_admin,
:set_course_group, :create_group_by_importing_file, :set_course_group, :create_group_by_importing_file]
:update_task_position, :tasks_list]
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,
:change_course_teacher, :course_group_list, :change_member_role,:inform_up, :inform_down, :change_course_teacher, :course_group_list, :change_member_role,:inform_up, :inform_down,
:teacher_application_review, :apply_teachers, :delete_course_teacher] :teacher_application_review, :apply_teachers, :delete_course_teacher,
:update_task_position, :tasks_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

@ -19,10 +19,10 @@ class HomeworkCommonsController < ApplicationController
:publish_homework, :end_homework, :set_public, :choose_category, :move_to_category, :publish_homework, :end_homework, :set_public, :choose_category, :move_to_category,
:choose_category, :create_subject_homework, :multi_destroy, :group_list, :homework_code_repeat, :choose_category, :create_subject_homework, :multi_destroy, :group_list, :homework_code_repeat,
:code_review_results, :code_review_detail, :update_explanation, :update_settings, :code_review_results, :code_review_detail, :update_explanation, :update_settings,
:add_to_homework_bank, :publish_groups, :end_groups, :batch_comment] :add_to_homework_bank, :publish_groups, :end_groups, :batch_comment, :alter_name]
before_action :require_id_params, only: [:set_public, :multi_destroy, :publish_homework, :end_homework, :move_to_category, before_action :require_id_params, only: [:set_public, :multi_destroy, :publish_homework, :end_homework, :move_to_category,
:add_to_homework_bank] :add_to_homework_bank]
before_action :course_manager, only: [:alter_name] # before_action :course_manager, only: [:alter_name]
def index def index
tip_exception("type参数有误") if params[:type] && ![1, 3, 4].include?(params[:type].to_i) tip_exception("type参数有误") if params[:type] && ![1, 3, 4].include?(params[:type].to_i)

Loading…
Cancel
Save