FEATURE: Add api scope for create invite endpoint (#19964)

Adds an api scope for the POST /invite endpoint.
This commit is contained in:
Blake Erickson 2023-01-23 16:20:22 -07:00 committed by GitHub
parent 73deb31e3e
commit 774feb6614
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -121,6 +121,11 @@ class ApiKeyScope < ActiveRecord::Base
actions: %w[admin/email#handle_mail admin/email#smtp_should_reject],
},
},
invites: {
create: {
actions: %w[invites#create],
},
},
badges: {
create: {
actions: %w[admin/badges#create],

View File

@ -4695,6 +4695,8 @@ en:
update: Update user status.
email:
receive_emails: Combine this scope with the mail-receiver to process incoming emails.
invites:
create: Send email invites or generate invite links.
badges:
create: Create a new badge.
show: Obtain information about a badge.

View File

@ -429,6 +429,7 @@ RSpec.describe Admin::ApiController do
"badges",
"categories",
"search",
"invites",
"wordpress",
)
end