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

class DeliveryPolicy < ApplicationPolicy
  def clear_delivery_errors?
    role.can?(:manage_federation)
  end

  def restart_delivery?
    role.can?(:manage_federation)
  end

  def stop_delivery?
    role.can?(:manage_federation)
  end
end