tab/app/models/ability.rb
Ilion Beyst a3a7ff8c44 Revert "Merge branch 'master' into filter-datatables"
This reverts commit 78863c40b7, reversing
changes made to bbaa070cca.
2015-09-10 22:25:52 +02:00

11 lines
213 B
Ruby

class Ability
include CanCan::Ability
def initialize(user)
return unless user
can :manage, :all if user.penning?
can :read, user, id: user.id
can :create, Transaction, debtor: user
end
end