diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7c11ce04f..aa4db3b42 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -12,7 +12,8 @@ class ApplicationController < ActionController::Base end rescue_from CanCan::AccessDenied do |exception| - redirect_to admin_dashboard_path, alert: exception.message + redirect_to admin_root_path, alert: exception.message if current_user.is_a?(AdminUser) + redirect_to registrar_root_path, alert: exception.message if current_user.is_a?(ApiUser) end def after_sign_in_path_for(_resource) diff --git a/config/deploy.rb b/config/deploy.rb index fce0766fc..c4eb4c085 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -33,7 +33,7 @@ task :registrar do set :domain, 'registry-st' set :deploy_to, '$HOME/registrar' set :repository, 'https://github.com/domify/registry' # dev repo - set :branch, 'registrar-portal' + set :branch, 'master' set :rails_env, 'alpha' set :delayed_job, false end