check and fixed SQA feedback
This commit is contained in:
@@ -112,10 +112,10 @@ class Ability
|
||||
|
||||
can :index, :other_charge
|
||||
can :create, :other_charge
|
||||
# can :index, :discount
|
||||
# can :create, :discount
|
||||
# can :remove_discount_items, :discount
|
||||
# can :remove_all_discount, :discount
|
||||
can :index, :discount
|
||||
can :create, :discount
|
||||
can :remove_discount_items, :discount
|
||||
can :remove_all_discount, :discount
|
||||
can :member_discount, :discount
|
||||
|
||||
can :first_bill, :payment
|
||||
@@ -194,6 +194,26 @@ class Ability
|
||||
elsif user.role == "waiter"
|
||||
can :index, :home
|
||||
can :show, :home
|
||||
|
||||
can :manage, Customer
|
||||
can :get_customer, Customer
|
||||
can :add_customer, Customer
|
||||
can :update_sale_by_customer, Customer
|
||||
|
||||
can :index, :other_charge
|
||||
can :create, :other_charge
|
||||
can :index, :discount
|
||||
can :create, :discount
|
||||
can :remove_discount_items, :discount
|
||||
can :remove_all_discount, :discount
|
||||
can :member_discount, :discount
|
||||
|
||||
#ability for move table
|
||||
can :move_dining, :movetable
|
||||
can :moving, :movetable
|
||||
|
||||
can :move_dining, :moveroom
|
||||
|
||||
#ability for split_bill
|
||||
can :index, :split_bill
|
||||
can :create, :split_bill
|
||||
|
||||
Reference in New Issue
Block a user