|
|
|
@ -10,7 +10,8 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
:create_subject_homework, :multi_destroy, :add_to_homework_bank]
|
|
|
|
|
before_action :find_homework, only: [:edit, :show, :update, :group_list, :homework_code_repeat, :code_review_results,
|
|
|
|
|
:code_review_detail, :show_comment, :settings, :works_list, :update_settings,
|
|
|
|
|
:reference_answer, :publish_groups, :end_groups, :alter_name, :update_explanation]
|
|
|
|
|
:reference_answer, :publish_groups, :end_groups, :alter_name, :update_explanation,
|
|
|
|
|
:update_score, :update_student_score]
|
|
|
|
|
before_action :user_course_identity
|
|
|
|
|
before_action :homework_publish, only: [:show, :works_list, :code_review_results, :show_comment, :settings, :reference_answer, :update_student_score]
|
|
|
|
|
before_action :teacher_allowed, only: [:new, :edit, :create, :update, :shixuns, :subjects, :create_shixun_homework,
|
|
|
|
|