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