add dashboard settings and customer create
This commit is contained in:
@@ -67,7 +67,8 @@ class HomeController < ApplicationController
|
||||
redirect_to dashboard_path
|
||||
elsif @employee.role == "supervisor"
|
||||
session[:session_token] = @employee.token_session
|
||||
redirect_to origami_root_path
|
||||
route_by_role(@employee)
|
||||
# redirect_to origami_root_path
|
||||
elsif @employee.role == "waiter"
|
||||
session[:session_token] = @employee.token_session
|
||||
route_by_role(@employee)
|
||||
@@ -202,9 +203,9 @@ class HomeController < ApplicationController
|
||||
redirect_to origami_dashboard_path
|
||||
elsif employee.role == "crm"
|
||||
redirect_to crm_root_path
|
||||
elsif @employee.role == "supervisor"
|
||||
redirect_to origami_root_path
|
||||
elsif @employee.role == "account"
|
||||
elsif employee.role == "supervisor"
|
||||
redirect_to origami_dashboard_path
|
||||
elsif employee.role == "account"
|
||||
redirect_to reports_dailysale_index_path
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user