about summary refs log tree commit diff
path: root/app/policies/rule_policy.rb
blob: 6a4def00900f3cbbc76ede84665c926f0bd2bfe8 (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 RulePolicy < ApplicationPolicy
  def index?
    staff?
  end

  def create?
    admin?
  end

  def update?
    admin?
  end

  def destroy?
    admin?
  end
end