about summary refs log tree commit diff
path: root/app/policies/appeal_policy.rb
blob: a25187172a41461ba781e760936d8ff82ccabbdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AppealPolicy < ApplicationPolicy
  def index?
    staff?
  end

  def approve?
    record.pending? && staff?
  end

  alias reject? approve?
end