You can reset your own API token
This commit is contained in:
parent
8f8bb86d3d
commit
b367d749ca
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class UserAbility
|
||||||
can :manage, :all if user.penning?
|
can :manage, :all if user.penning?
|
||||||
can :create, Request, creditor_id: user.id
|
can :create, Request, creditor_id: user.id
|
||||||
can [:confirm, :decline], Request, debtor_id: user.id
|
can [:confirm, :decline], Request, debtor_id: user.id
|
||||||
can :read, User, id: user.id
|
can [:read, :reset_key], User, 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.amount <= Rails.application.config.maximum_amount
|
t.debtor == user && t.amount <= Rails.application.config.maximum_amount
|
||||||
|
|
Loading…
Reference in a new issue