From fe3b7158291fdb0afeca33ecd94ca312cd944cb3 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 29 May 2015 10:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E5=B8=88=E8=AF=84=E5=88=86=E4=B9=8B?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E6=8F=90=E4=BA=A4=E6=89=B9=E9=98=85=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=8C=89=E9=92=AE=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/student_work_controller.rb | 1 + 1 file changed, 1 insertion(+) 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]