2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

DEV: add smtp_should_reject to the receive_emails api key scope (#17110)

This commit is contained in:
Roman Rizzi 2022-06-16 13:46:56 -03:00 committed by GitHub
parent 691afa2593
commit e5691362df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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] },