about summary refs log tree commit diff
path: root/app/policies/account_warning_preset_policy.rb
blob: 4667c86b01916556552149877d28126a0318c197 (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 AccountWarningPresetPolicy < ApplicationPolicy
  def index?
    !defanged? && staff?
  end

  def create?
    !defanged? && staff?
  end

  def update?
    !defanged? && staff?
  end

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