From e5691362dfae219602b903fd5931f449d7994f04 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Thu, 16 Jun 2022 13:46:56 -0300 Subject: [PATCH] DEV: add smtp_should_reject to the receive_emails api key scope (#17110) --- app/models/api_key_scope.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/api_key_scope.rb b/app/models/api_key_scope.rb index 6c157566a2c..1cc804fecfb 100644 --- a/app/models/api_key_scope.rb +++ b/app/models/api_key_scope.rb @@ -64,7 +64,7 @@ class ApiKeyScope < ActiveRecord::Base list: { actions: %w[admin/users#index] }, }, email: { - receive_emails: { actions: %w[admin/email#handle_mail] } + receive_emails: { actions: %w[admin/email#handle_mail admin/email#smtp_should_reject] } }, badges: { create: { actions: %w[admin/badges#create] },