Use :parameter_not_allowed_error_message to from base Reports::Authorizer.

This commit is contained in:
Cillian O'Ruanaidh
2020-06-05 17:05:26 +01:00
parent e58852289f
commit bafa8beab3
2 changed files with 1 additions and 6 deletions

View File

@@ -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

View File

@@ -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