1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/policies/wallet_policy.rb

14 lines
206 B
Ruby
Raw Normal View History

2016-07-18 18:16:54 +02:00
class WalletPolicy < ApplicationPolicy
def by_user?
user.admin? or user == record.user
2016-07-18 18:16:54 +02:00
end
2016-07-05 13:20:25 +02:00
def transactions?
user.admin? or user == record.user
2016-07-05 13:20:25 +02:00
end
def credit?
user.admin?
end
2016-07-18 18:16:54 +02:00
end