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

class WalletPolicy < ApplicationPolicy
def by_user?
user.admin? or user == record.user
end
def transactions?
user.admin? or user == record.user
end
def credit?
user.admin?
end
end