Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes
This commit is contained in:
@@ -98,6 +98,22 @@ class Ability
|
||||
can :create, :split_bill
|
||||
can :update_sale, :split_bill
|
||||
|
||||
#oqs Home
|
||||
can :index, :home
|
||||
can :index, :show
|
||||
can :get_order_items, :home
|
||||
can :get_items_by_oqs, :home
|
||||
can :update_delivery_status, :home
|
||||
can :queue_items_query, :home
|
||||
can :completed_order, :home
|
||||
can :queue_items_count_query, :home
|
||||
|
||||
can :index, :edit
|
||||
can :update, :edit
|
||||
|
||||
can :print, :print
|
||||
can :print_order_summary, :print
|
||||
|
||||
elsif user.role == "cashier"
|
||||
|
||||
# can :overall_void, :void
|
||||
@@ -144,6 +160,22 @@ class Ability
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
can :update_sale, :split_bill
|
||||
|
||||
#oqs Home
|
||||
can :index, :home
|
||||
can :index, :show
|
||||
can :get_order_items, :home
|
||||
can :get_items_by_oqs, :home
|
||||
can :update_delivery_status, :home
|
||||
can :queue_items_query, :home
|
||||
can :completed_order, :home
|
||||
can :queue_items_count_query, :home
|
||||
|
||||
can :index, :edit
|
||||
can :update, :edit
|
||||
|
||||
can :print, :print
|
||||
can :print_order_summary, :print
|
||||
|
||||
elsif user.role == "account"
|
||||
|
||||
@@ -206,6 +238,23 @@ class Ability
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
can :update_sale, :split_bill
|
||||
|
||||
#oqs Home
|
||||
can :index, :home
|
||||
can :index, :show
|
||||
can :get_order_items, :home
|
||||
can :get_items_by_oqs, :home
|
||||
can :update_delivery_status, :home
|
||||
can :queue_items_query, :home
|
||||
can :completed_order, :home
|
||||
can :queue_items_count_query, :home
|
||||
|
||||
can :index, :edit
|
||||
can :update, :edit
|
||||
|
||||
can :print, :print
|
||||
can :print_order_summary, :print
|
||||
|
||||
elsif user.role == "waiter"
|
||||
can :index, :home
|
||||
can :show, :home
|
||||
@@ -232,6 +281,40 @@ class Ability
|
||||
#ability for split_bill
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
|
||||
#oqs Home
|
||||
can :index, :home
|
||||
can :index, :show
|
||||
can :get_order_items, :home
|
||||
can :get_items_by_oqs, :home
|
||||
can :update_delivery_status, :home
|
||||
can :queue_items_query, :home
|
||||
can :completed_order, :home
|
||||
can :queue_items_count_query, :home
|
||||
|
||||
can :index, :edit
|
||||
can :update, :edit
|
||||
|
||||
can :print, :print
|
||||
can :print_order_summary, :print
|
||||
|
||||
elsif user.role == "kitchen"
|
||||
|
||||
#oqs Home
|
||||
can :index, :home
|
||||
can :index, :show
|
||||
can :get_order_items, :home
|
||||
can :get_items_by_oqs, :home
|
||||
can :update_delivery_status, :home
|
||||
can :queue_items_query, :home
|
||||
can :completed_order, :home
|
||||
can :queue_items_count_query, :home
|
||||
|
||||
can :index, :edit
|
||||
can :update, :edit
|
||||
|
||||
can :print, :print
|
||||
can :print_order_summary, :print
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user