课程列表的归档恢复

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>
def find_course
@course= Course.find(params[:id])
if @course.is_delete == 1 and !User.current.admin?
render_404
return
end
rescue ActiveRecord::RecordNotFound
render_404
end

View File

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