about summary refs log tree commit diff
path: root/app/policies/email_domain_block_policy.rb
blob: 36d5475390a1e037852cd7344bf0c73bf383c844 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class EmailDomainBlockPolicy < ApplicationPolicy
  def index?
    !defanged? && staff?
  end

  def create?
    !defanged? && staff?
  end

  def destroy?
    !defanged? && staff?
  end
end