课程列表的归档恢复

This commit is contained in:
cxt 2017-01-06 17:33:45 +08:00
parent 19e484aaeb
commit b18d9f2eb3
2 changed files with 1 additions and 5 deletions

View File

@ -500,10 +500,6 @@ class ApplicationController < ActionController::Base
#<23><>ȡ<EFBFBD>γ<EFBFBD> #<23><>ȡ<EFBFBD>γ<EFBFBD>
def find_course def find_course
@course= Course.find(params[:id]) @course= Course.find(params[:id])
if @course.is_delete == 1 and !User.current.admin?
render_404
return
end
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
render_404 render_404
end end

View File

@ -4193,7 +4193,7 @@ end
end end
respond_to do |format| respond_to do |format|
format.js format.js
format.html {render :layout => 'new_base_user'} format.html {render :layout => 'base_course_community'}
end end
end end
end end