mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Use :parameter_not_allowed_error_message to from base Reports::Authorizer.
This commit is contained in:
@@ -2,11 +2,6 @@ module OrderManagement
|
||||
module Reports
|
||||
module BulkCoop
|
||||
class Authorizer < ::Reports::Authorizer
|
||||
def self.parameter_not_allowed_error_message
|
||||
i18n_scope = "order_management.reports.enterprise_fee_summary"
|
||||
I18n.t("parameter_not_allowed_error", scope: i18n_scope)
|
||||
end
|
||||
|
||||
def authorize!
|
||||
require_ids_allowed(parameters.distributor_ids, permissions.allowed_distributors)
|
||||
end
|
||||
|
||||
@@ -10,7 +10,7 @@ module Reports
|
||||
end
|
||||
|
||||
def self.parameter_not_allowed_error_message
|
||||
i18n_scope = "order_management.reports.shared"
|
||||
i18n_scope = "order_management.reports.base"
|
||||
I18n.t("parameter_not_allowed_error", scope: i18n_scope)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user