diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index abf7e24d1..d3cb437ee 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -120,6 +120,7 @@ class StudentWorkController < ApplicationController #添加评分,已评分则为修改评分 def add_score @score = student_work_score @work,User.current + @is_teacher = User.current.allowed_to?(:as_teacher,@course) if @score @score.comment = params[:new_form][:user_message] if params[:new_form] && params[:new_form][:user_message] && params[:new_form][:user_message] != "" @score.score = params[:score] if params[:score]