Revert "Fix permissions"

This reverts commit 8285874483.
This commit is contained in:
David Vandorpe 2018-03-21 19:39:41 +01:00
parent 8285874483
commit 5472067004
No known key found for this signature in database
GPG key ID: 750319296238238A

View file

@ -9,7 +9,7 @@ class UserAbility
can :manage, Request, creditor_id: user.id can :manage, Request, creditor_id: user.id
can :manage, Notification, user_id: user.id can :manage, Notification, user_id: user.id
can :create, Transaction do |t| can :create, Transaction do |t|
t.debtor == user && (t.debtor.balance - t.amount >= 0 || t.debtor.debt_allowed?) t.debtor == user && t.amount <= Rails.application.config.maximum_amount
end end
end end
end end