From d8ba15f6cefd5cb42c539b05db54e1b729e451d9 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 4 Jul 2017 19:19:09 +0630 Subject: [PATCH] adm route to dashboard --- app/controllers/home_controller.rb | 3 +-- app/views/origami/home/index.html.erb | 3 ++- dump.rdb | Bin 819 -> 819 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index f7c0e516..d6960bc3 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -34,7 +34,6 @@ class HomeController < ApplicationController if @employee != nil if @employee.role == "administrator" session[:session_token] = @employee.token_session - puts "ADDDDDD" redirect_to dashboard_path elsif @employee.role == "cashier" session[:session_token] = @employee.token_session @@ -83,7 +82,7 @@ class HomeController < ApplicationController if !shift.nil? redirect_to origami_root_path else - redirect_to new_origami_shift_path + redirect_to dashboard_path end elsif employee.role == "cashier" #check if cashier has existing open cashier diff --git a/app/views/origami/home/index.html.erb b/app/views/origami/home/index.html.erb index 6bdadd85..68fb80e4 100644 --- a/app/views/origami/home/index.html.erb +++ b/app/views/origami/home/index.html.erb @@ -105,7 +105,8 @@
- + +
diff --git a/dump.rdb b/dump.rdb index c0500eabbfda27fd4f7de246bd2618b7cf5df992..aca182bf7f2ecfa3ade1bae644ed3807faecd011 100644 GIT binary patch delta 92 zcmV-i0Hgo22D1i`Fc|xdTUq)Db#rB8Ep26O!jSJ40R8~`69JRq0v54eB>@TYg`*8! y0RR95lRp6#7z6}jWnpv@F*G?jF*h>!0irRZw*U>_R* delta 92 zcmV-i0Hgo22D1i`Fc?RPTUq)Db#rB8Ep26O!ho<40R8~`69JRq0v54eB>@RcAdwAS y0RR95lRp6#7z6}jWnpv@F*G?jF*h+WG%+qPIXN{lG_$$^aRCUTZ>Tj~&&z0J`y7t|