~cytrogen/masto-fe

ref: 178e151019cc1b0d5a537543e7d2f6b4712b9fd4 masto-fe/app/policies/ip_block_policy.rb -rw-r--r-- 327 bytes
178e1510 — Claire Merge commit '55e7c08a83547424024bac311d5459cb82cf6dae' into glitch-soc/merge-upstream 2 years ago
                                                                                
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 IpBlockPolicy < ApplicationPolicy
  def index?
    role.can?(:manage_blocks)
  end

  def show?
    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