about summary refs log tree commit diff
path: root/app/policies/domain_block_policy.rb
blob: 4cd4d550a4e1efe19127edee672b2ba55d0c44c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

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

  def show?
    !defanged? && staff?
  end

  def create?
    !defanged? && staff?
  end

  def destroy?
    !defanged? && staff?
  end

  def update?
    !defanged? && staff?
  end
end