This commit is contained in:
benji 2015-10-07 15:52:05 +02:00
parent c8b21ed1d1
commit f0032448d5

View file

@ -4,7 +4,7 @@ class Ability
def initialize(user)
return unless user
can :from_barcode, Product
can :read, Barcode
if user.admin?
can :manage, :all