超级管理员评分定义为教师评分

This commit is contained in:
sw 2015-06-02 10:47:10 +08:00
parent c1d753f634
commit 9c336a01c8
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class StudentWorkController < ApplicationController
@score.user_id = User.current.id
@score.student_work_id = @work.id
role = User.current.members.where("course_id = ?",@course.id).first.roles.first.name
@score.reviewer_role = get_role_by_name(role)
User.current.admin? ? @score.reviewer_role = 1 : @score.reviewer_role = get_role_by_name(role)
@is_new = true
end