appeal_policy.rb 182 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AppealPolicy < ApplicationPolicy
  3. def index?
  4. staff?
  5. end
  6. def approve?
  7. record.pending? && staff?
  8. end
  9. alias reject? approve?
  10. end