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
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