Before Filters and redirect path for central server before filter
This commit is contained in:
parent
a01827865b
commit
608aabb8c0
|
@ -1,5 +1,5 @@
|
||||||
class Admin::ModuleStoreController < OrbitBackendController
|
class Admin::ModuleStoreController < OrbitBackendController
|
||||||
before_filter :check_central_server_connection, :only => [:get_extensions]
|
before_filter :check_central_server_connection
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@extensions = get_extensions
|
@extensions = get_extensions
|
||||||
|
|
|
@ -3,7 +3,7 @@ require 'uri'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'zip/zip'
|
require 'zip/zip'
|
||||||
class Admin::TemplateStoreController < OrbitBackendController
|
class Admin::TemplateStoreController < OrbitBackendController
|
||||||
before_filter :check_central_server_connection, :only => [:get_templates]
|
before_filter :check_central_server_connection
|
||||||
before_filter :set_store
|
before_filter :set_store
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -483,7 +483,7 @@ class ApplicationController < ActionController::Base
|
||||||
if @site.site_token?
|
if @site.site_token?
|
||||||
flash[:notice]="Connected to the Store"
|
flash[:notice]="Connected to the Store"
|
||||||
else
|
else
|
||||||
redirect_to admin_register_site_index_path
|
redirect_to admin_sites_register_site_path
|
||||||
flash[:notice]="To Access the Store Please Connect It"
|
flash[:notice]="To Access the Store Please Connect It"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue