a3a7ff8c44
This reverts commit78863c40b7
, reversing changes made tobbaa070cca
.
11 lines
213 B
Ruby
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
|