diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c46c039ce..21653b3e4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -500,10 +500,6 @@ class ApplicationController < ActionController::Base #��ȡ�γ� 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 diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4f723fb28..25d7dbf1d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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