diff --git a/app/controllers/homework_common_controller.rb b/app/controllers/homework_common_controller.rb index 81e0a080a..99f1b519b 100644 --- a/app/controllers/homework_common_controller.rb +++ b/app/controllers/homework_common_controller.rb @@ -244,6 +244,7 @@ class HomeworkCommonController < ApplicationController else @statue = 3 end + find_homework @user_activity_id = params[:user_activity_id].to_i @hw_status = params[:hw_status].to_i @is_teacher = User.current.admin? || User.current.allowed_to?(:as_teacher, @course)