diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 9def1c630..7543bc770 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -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