0
0
Fork 0

Add management of delivery availability in Federation settings (#15771)

* 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)
This commit is contained in:
Takeshi Umeda 2021-05-06 06:39:02 +09:00 committed by GitHub
parent d9ae3db8d5
commit 7cb34b32f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 180 additions and 5 deletions

View file

@ -0,0 +1,15 @@
# frozen_string_literal: true
class DeliveryPolicy < ApplicationPolicy
def clear_delivery_errors?
admin?
end
def restart_delivery?
admin?
end
def stop_delivery?
admin?
end
end