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
|
||||
before_filter :check_central_server_connection, :only => [:get_extensions]
|
||||
before_filter :check_central_server_connection
|
||||
|
||||
def index
|
||||
@extensions = get_extensions
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue