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

class IpBlockPolicy < ApplicationPolicy
  def index?
    role.can?(:manage_blocks)
  end

  def create?
    role.can?(:manage_blocks)
  end

  def update?
    role.can?(:manage_blocks)
  end

  def destroy?
    role.can?(:manage_blocks)
  end
end