update authroize

This commit is contained in:
Aung Myo
2017-06-26 22:45:34 +06:30
parent 0726af072e
commit 4c13be257b
34 changed files with 52 additions and 976 deletions

View File

@@ -32,9 +32,6 @@ class Ability
can :manage, Customer
can :index, :dailysale
can :index, :saleitem
can :add_customer, Customer
can :update_sale_by_customer, Customer
@@ -50,6 +47,10 @@ class Ability
can :move_dining, :moveroom
can :index, :dailysale
can :index, :saleitem
can :index, :receipt_no
elsif user.role == "cashier"
can :read, Order
@@ -72,20 +73,21 @@ class Ability
can :moving, :movetable
can :move_dining, :moveroom
can :index, :dailysale
can :index, :saleitem
elsif user.role == "accountant"
can :index, :dailysale
can :index, :saleitem
can :index, :receiptno
can :show, :dailysale
can :show, :saleitem
can :show, :receiptno
can :manage, :saleitem
can :index, :receiptno
elsif user.role == "supervisour"
can :index, :dailysale
can :manage, :saleitem
can :index, :receiptno
end
end
end