check payment and ability for split bill
This commit is contained in:
@@ -93,6 +93,11 @@ class Ability
|
||||
can :index, :home
|
||||
can :show, :home
|
||||
|
||||
#ability for split_bill
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
can :update_sale, :split_bill
|
||||
|
||||
elsif user.role == "cashier"
|
||||
|
||||
# can :overall_void, :void
|
||||
@@ -191,6 +196,11 @@ class Ability
|
||||
|
||||
can :index, :home
|
||||
can :show, :home
|
||||
|
||||
#ability for split_bill
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
can :update_sale, :split_bill
|
||||
elsif user.role == "waiter"
|
||||
can :index, :home
|
||||
can :show, :home
|
||||
|
||||
Reference in New Issue
Block a user