libertarian-party/partynest

View on GitHub
app/policies/settings/contact_public_switch_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Settings::ContactPublicSwitchPolicy < ApplicationPolicy
  def create?
    account &&
      record.contact.contact_list.account == account
  end
end