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

sw_new_course
sw 10 years ago
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…
Cancel
Save