update merge cancan

This commit is contained in:
Aung Myo
2017-06-27 16:55:56 +06:30
32 changed files with 50 additions and 743 deletions

View File

@@ -34,6 +34,7 @@ class Ability
can :index, :dailysale
can :index, :saleitem
can :index, :receipt_no
can :add_customer, Customer
can :update_sale_by_customer, Customer
@@ -76,12 +77,17 @@ class Ability
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