课程列表的归档恢复
This commit is contained in:
parent
19e484aaeb
commit
b18d9f2eb3
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue