问答区屏蔽

dev_local
huang 6 years ago
parent 04f3349063
commit 9837411f69

@ -32,6 +32,10 @@ class CategoriesController < ApplicationController
private
def render_react
if LocalSetting.first.try(:exam) && !current_user.admin?
render_403
else
render "/common/index", :layout => false
end
end
end

@ -28,8 +28,12 @@ class ForumsController < ApplicationController
private
def render_react
if LocalSetting.first.try(:exam) && !current_user.admin?
render_403
else
render "/common/index", :layout => false
end
end
end

Loading…
Cancel
Save