Before Filters and redirect path for central server before filter

This commit is contained in:
Saurabh Bhatia 2014-02-17 18:03:09 +08:00
parent a01827865b
commit 608aabb8c0
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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