adm route to dashboard

This commit is contained in:
Yan
2017-07-04 19:19:09 +06:30
parent d51b1a0b9e
commit d8ba15f6ce
3 changed files with 3 additions and 3 deletions

View File

@@ -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