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

14 lines
215 B
Ruby
Raw Normal View History

2016-07-18 18:16:54 +02:00
class WalletPolicy < ApplicationPolicy
def by_user?
user.is_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.is_admin? or user == record.user
end
def credit?
user.is_admin?
end
2016-07-18 18:16:54 +02:00
end