From 55637808fffde740143b22e39bb90595424106b1 Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 5 Aug 2016 18:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E4=BD=9C=E5=93=81=EF=BC=9A?= =?UTF-8?q?=E4=B8=A4=E7=A7=8D=E8=A7=92=E8=89=B2=E7=9A=84=E6=88=90=E5=91=98?= =?UTF-8?q?=EF=BC=8C=E5=85=88=E5=AD=A6=E7=94=9F=E8=BA=AB=E4=BB=BD=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BD=9C=E5=93=81=EF=BC=8C=E5=86=8D=E6=95=99=E8=BE=85?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=84=E9=98=85=E8=87=AA=E5=B7=B1=E7=9A=84?= =?UTF-8?q?=E4=BD=9C=E5=93=81=EF=BC=8C=E8=AF=84=E9=98=85=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0?= 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 deletion(-) diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 6ea8baa29..adfcd6263 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -802,7 +802,6 @@ class StudentWorkController < ApplicationController #添加评分,已评分则为修改评分 def add_score @is_last = params[:is_last] == "true" - render_403 and return if User.current == @work.user #不可以匿评自己的作品 @is_teacher = User.current.allowed_to?(:as_teacher,@course) || User.current.admin? #老师、教辅可以随时评分,学生只能在匿评作业的匿评阶段进行评分 render_403 and return unless @is_teacher || @homework.homework_detail_manual.comment_status == 2