-
-
Save knewter/800393 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/controllers/home_page_controller.rb b/app/controllers/home_page_controller.rb | |
index 70f00ba..7db6f4f 100644 | |
--- a/app/controllers/home_page_controller.rb | |
+++ b/app/controllers/home_page_controller.rb | |
@@ -4,23 +4,31 @@ class HomePageController < ApplicationController | |
def index | |
if admin? || current_user.reporter? | |
- redirect_to(admin_base_path) | |
+ #redirect_to(admin_base_path) | |
+ redirect_to admin_cards_path | |
elsif current_user.underwriter? | |
redirect_to(underwriter_base_path) | |
elsif csr? | |
- redirect_to(customer_service_base_path) | |
+ #redirect_to(customer_service_base_path) | |
+ redirect_to customer_service_cards_path | |
elsif current_user.agent_admin? | |
redirect_to(agent_admin_base_path) | |
elsif current_user.store_manager? | |
if cookies["user_store_id"] | |
- redirect_to stores_path | |
+ #redirect_to stores_path | |
+ redirect_to lookup_card_store_path(current_user_store) | |
else | |
redirect_to(store_manager_store_path) | |
end | |
elsif current_user.cardholder? | |
redirect_to account_root_path | |
else | |
- redirect_to(stores_path) | |
+ #redirect_to(stores_path) | |
+ if cookies["user_store_id"] | |
+ redirect_to lookup_card_store_path(current_user_store) | |
+ else | |
+ redirect_to(stores_path) | |
+ end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment