Merge branch 'master' of ssh://bitbucket.org/code2lab/sxrestaurant

# Conflicts:
#	Gemfile.lock
#	app/views/layouts/application.html.erb
This commit is contained in:
Min Zeya Phyo
2017-06-26 21:57:55 +06:30
128 changed files with 3988 additions and 646 deletions

View File

@@ -38,6 +38,12 @@ class HomeController < ApplicationController
elsif @employee.role == "cashier"
session[:session_token] = @employee.token_session
redirect_to origami_root_path
elsif @employee.role == "manager"
session[:session_token] = @employee.token_session
redirect_to dashboard_path
elsif @employee.role == "accountant"
session[:session_token] = @employee.token_session
redirect_to dashboard_path
else
render :index
end