超级管理员评分定义为教师评分
This commit is contained in:
parent
c1d753f634
commit
9c336a01c8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue