diff --git a/app/helpers/orbit_backend_helper.rb b/app/helpers/orbit_backend_helper.rb index 8f330c8..4768501 100644 --- a/app/helpers/orbit_backend_helper.rb +++ b/app/helpers/orbit_backend_helper.rb @@ -133,10 +133,11 @@ module OrbitBackendHelper if @user_authenticated_categories.first == "all" return true else - @user_authenticated_categories.include?obj.category_id + @user_authenticated_categories.include?obj.category_id rescue current_user.is_manager?(@module_app) end end + def render_401 render "public/401" end diff --git a/built_in_extensions.rb b/built_in_extensions.rb index cd63487..3c7c44c 100644 --- a/built_in_extensions.rb +++ b/built_in_extensions.rb @@ -1,7 +1,7 @@ -gem 'announcement', path: '/Volumes/MyData/github/orbit4.5/new_modules/announcement' -gem 'ad_banner', path: '/Volumes/MyData/github/orbit4.5/new_modules/adbanner-test' +gem 'announcement', git: 'git@gitlab.tp.rulingcom.com:saurabh/announcement-test.git' +gem 'ad_banner', git: 'git@gitlab.tp.rulingcom.com:saurabh/adbanner-test.git' gem "archive", git: 'git@gitlab.tp.rulingcom.com:saurabh/archive.git' -gem 'gallery', path: '/Volumes/MyData/github/orbit4.5/new_modules/gallery' +gem 'gallery', git: 'git@gitlab.tp.rulingcom.com:saurabh/gallery.git' gem 'links', git: 'git@gitlab.tp.rulingcom.com:saurabh/links.git' gem 'page_content', git: 'git@gitlab.tp.rulingcom.com:saurabh/pagecontent.git' gem 'faq', git: 'git@gitlab.tp.rulingcom.com:saurabh/faq.git'