diff --git a/app/controllers/admin/module_store_controller.rb b/app/controllers/admin/module_store_controller.rb index ced1adf..38a1354 100644 --- a/app/controllers/admin/module_store_controller.rb +++ b/app/controllers/admin/module_store_controller.rb @@ -1,5 +1,5 @@ class Admin::ModuleStoreController < OrbitBackendController - before_filter :check_central_server_connection, :only => [:get_extensions] + before_filter :check_central_server_connection def index @extensions = get_extensions diff --git a/app/controllers/admin/template_store_controller.rb b/app/controllers/admin/template_store_controller.rb index 299b96c..7e07067 100644 --- a/app/controllers/admin/template_store_controller.rb +++ b/app/controllers/admin/template_store_controller.rb @@ -3,7 +3,7 @@ require 'uri' require 'fileutils' require 'zip/zip' class Admin::TemplateStoreController < OrbitBackendController - before_filter :check_central_server_connection, :only => [:get_templates] + before_filter :check_central_server_connection before_filter :set_store def index diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 98618ef..4f4549f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -483,7 +483,7 @@ class ApplicationController < ActionController::Base if @site.site_token? flash[:notice]="Connected to the Store" else - redirect_to admin_register_site_index_path + redirect_to admin_sites_register_site_path flash[:notice]="To Access the Store Please Connect It" end end