delivery_policy.rb 272 B

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