From 36f7e190113ab1ab4c52913729874b10ee1ef221 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 3 Dec 2014 15:08:01 +0800 Subject: [PATCH] fixed assets for ckeditor --- lib/orbit_core_lib.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/orbit_core_lib.rb b/lib/orbit_core_lib.rb index 5001c64..6b46264 100644 --- a/lib/orbit_core_lib.rb +++ b/lib/orbit_core_lib.rb @@ -61,12 +61,13 @@ module OrbitCoreLib redirect_to new_session_path return end - if !@module_app.nil? check_user_can_use else if current_user.nil? || !current_user.is_admin? - render "public/401" + if params["controller"] != "admin/assets" + render "public/401" + end end end end