Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into r-1804001-01
This commit is contained in:
@@ -40,6 +40,8 @@ class Ability
|
|||||||
can :index, :shiftsale
|
can :index, :shiftsale
|
||||||
can :index, :credit_payment
|
can :index, :credit_payment
|
||||||
can :index, :void_sale
|
can :index, :void_sale
|
||||||
|
can :index, :waste_and_spoilage
|
||||||
|
can :index, :product_sale
|
||||||
|
|
||||||
can :show, :dailysale
|
can :show, :dailysale
|
||||||
can :show, :saleitem
|
can :show, :saleitem
|
||||||
@@ -47,6 +49,8 @@ class Ability
|
|||||||
can :show, :shiftsale
|
can :show, :shiftsale
|
||||||
can :show, :credit_payment
|
can :show, :credit_payment
|
||||||
can :show, :void_sale
|
can :show, :void_sale
|
||||||
|
can :show, :waste_and_spoilage
|
||||||
|
can :show, :product_sale
|
||||||
|
|
||||||
can :get_customer, Customer
|
can :get_customer, Customer
|
||||||
can :add_customer, Customer
|
can :add_customer, Customer
|
||||||
@@ -114,6 +118,9 @@ class Ability
|
|||||||
can :print, :print
|
can :print, :print
|
||||||
can :print_order_summary, :print
|
can :print_order_summary, :print
|
||||||
|
|
||||||
|
can :read, ShiftSale
|
||||||
|
can :update, ShiftSale
|
||||||
|
|
||||||
elsif user.role == "cashier"
|
elsif user.role == "cashier"
|
||||||
|
|
||||||
# can :overall_void, :void
|
# can :overall_void, :void
|
||||||
@@ -185,12 +192,16 @@ class Ability
|
|||||||
can :index, :shiftsale
|
can :index, :shiftsale
|
||||||
can :index, :credit_payment
|
can :index, :credit_payment
|
||||||
can :index, :void_sale
|
can :index, :void_sale
|
||||||
|
can :index, :waste_and_spoilage
|
||||||
|
can :index, :product_sale
|
||||||
can :show, :dailysale
|
can :show, :dailysale
|
||||||
can :show, :saleitem
|
can :show, :saleitem
|
||||||
can :show, :receipt_no
|
can :show, :receipt_no
|
||||||
can :show, :shiftsale
|
can :show, :shiftsale
|
||||||
can :show, :credit_payment
|
can :show, :credit_payment
|
||||||
can :show, :void_sale
|
can :show, :void_sale
|
||||||
|
can :show, :waste_and_spoilage
|
||||||
|
can :show, :product_sale
|
||||||
|
|
||||||
elsif user.role == "supervisor"
|
elsif user.role == "supervisor"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user