1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/policies/settings/person_policy.rb

18 lines
329 B
Ruby

# frozen_string_literal: true
class Settings::PersonPolicy < ApplicationPolicy
def show?
!!account
end
def create?
return false if account.nil?
return false unless account.person.nil?
return false unless record.account.nil?
return false if record.account_connection_token.blank?
true
end
end