cxt 5 years ago
parent fa6e192ea8
commit 7e1054aaf3

@ -1,11 +1,11 @@
class GraduationTasksController < ApplicationController class GraduationTasksController < ApplicationController
before_action :require_login, :check_auth, except: [:index] before_action :require_login, :check_auth, except: [:index]
before_action :find_course, except: [:edit, :update, :settings, :update_settings, :tasks_list, :show, :show_comment] before_action :find_course, except: [:edit, :update, :settings, :update_settings, :tasks_list, :show, :show_comment]
before_action :find_task, only: [:edit, :update, :settings, :update_settings, :tasks_list, :show, :show_comment] before_action :find_task, only: [:edit, :update, :settings, :update_settings, :tasks_list, :show, :show_comment, :cross_comment_setting]
before_action :user_course_identity before_action :user_course_identity
before_action :task_publish, only: [:show, :show_comment, :tasks_list, :settings] before_action :task_publish, only: [:show, :show_comment, :tasks_list, :settings]
before_action :teacher_allowed, only: [:new, :create, :edit, :update, :set_public,:multi_destroy, :publish_task, :end_task, before_action :teacher_allowed, only: [:new, :create, :edit, :update, :set_public,:multi_destroy, :publish_task, :end_task,
:update_settings, :add_to_bank] :update_settings, :add_to_bank, :cross_comment_setting]
before_action :require_id_params, only: [:set_public ,:multi_destroy, :publish_task, :end_task, :add_to_bank] before_action :require_id_params, only: [:set_public ,:multi_destroy, :publish_task, :end_task, :add_to_bank]
before_action :valid_params, only: [:update_settings] before_action :valid_params, only: [:update_settings]
include ExportHelper include ExportHelper
@ -498,7 +498,7 @@ class GraduationTasksController < ApplicationController
end end
def cross_comment_setting def cross_comment_setting
@comment_status
end end
private private

@ -536,6 +536,7 @@ Rails.application.routes.draw do
post 'update_settings' post 'update_settings'
get 'tasks_list' get 'tasks_list'
get :show_comment get :show_comment
get :cross_comment_setting
end end
collection do collection do

Loading…
Cancel
Save