delivery_policy.rb 203 B

123456789101112131415
  1. # frozen_string_literal: true
  2. class DeliveryPolicy < ApplicationPolicy
  3. def clear_delivery_errors?
  4. admin?
  5. end
  6. def restart_delivery?
  7. admin?
  8. end
  9. def stop_delivery?
  10. admin?
  11. end
  12. end