diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 965f15f3..7c248e92 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -792,7 +792,7 @@ class ShixunsController < ApplicationController shixun_script = modify_shixun_script @shixun, shixun_script end end - #@shixun.evaluate_script = shixun_script + @shixun.evaluate_script = shixun_script ActiveRecord::Base.transaction do begin diff --git a/app/views/student_work/_shixun_work_show.html.erb b/app/views/student_work/_shixun_work_show.html.erb index 77e3062f..3c0447de 100644 --- a/app/views/student_work/_shixun_work_show.html.erb +++ b/app/views/student_work/_shixun_work_show.html.erb @@ -7,7 +7,7 @@ <%= link_to @shixun.name, shixun_path(@shixun), :class => "edu-info-dark fl task-hide",:style=>"max-width:300px", :target => "_blank" %>

- <% if User.current.has_teacher_role(@homework.course) || User.current.admin? || @work.user == User.current %> + <% if User.current.has_teacher_role(@homework.course) || User.current.admin? || User.current.business? || @work.user == User.current %>
经验值:<%= @myshixun.total_score %>