Ability
This commit is contained in:
parent
c8b21ed1d1
commit
f0032448d5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue