FEATURE: Add api scope for create invite endpoint (#19964)
Adds an api scope for the POST /invite endpoint.
This commit is contained in:
parent
73deb31e3e
commit
774feb6614
|
@ -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],
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -429,6 +429,7 @@ RSpec.describe Admin::ApiController do
|
|||
"badges",
|
||||
"categories",
|
||||
"search",
|
||||
"invites",
|
||||
"wordpress",
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue