mirror of
https://github.com/funamitech/mastodon
synced 2024-12-05 10:18:45 +09:00
7cb34b32f8
* Add management of delivery availavility in Federation settings * fix translate * Remove useless object creation * Fix DeepSource issue * Add shortcut for all * Fix DeepSource(skipcq) * Change 'remove' to 'clear' * Fix style * Change class method name (exhausted_deliveries_key_by)
16 lines
203 B
Ruby
16 lines
203 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DeliveryPolicy < ApplicationPolicy
|
|
def clear_delivery_errors?
|
|
admin?
|
|
end
|
|
|
|
def restart_delivery?
|
|
admin?
|
|
end
|
|
|
|
def stop_delivery?
|
|
admin?
|
|
end
|
|
end
|