mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
14 lines
215 B
Ruby
14 lines
215 B
Ruby
class WalletPolicy < ApplicationPolicy
|
|
def by_user?
|
|
user.is_admin? or user == record.user
|
|
end
|
|
|
|
def transactions?
|
|
user.is_admin? or user == record.user
|
|
end
|
|
|
|
def credit?
|
|
user.is_admin?
|
|
end
|
|
end
|