mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FEATURE: Add API key scopes for tag_groups (#23634)
This commit is contained in:
parent
e3d3e34e57
commit
607f700c8c
@ -70,6 +70,22 @@ class ApiKeyScope < ActiveRecord::Base
|
|||||||
actions: %w[tags#index],
|
actions: %w[tags#index],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
tag_groups: {
|
||||||
|
list: {
|
||||||
|
actions: %w[tag_groups#index],
|
||||||
|
},
|
||||||
|
show: {
|
||||||
|
actions: %w[tag_groups#show],
|
||||||
|
params: %i[id],
|
||||||
|
},
|
||||||
|
create: {
|
||||||
|
actions: %w[tag_groups#create],
|
||||||
|
},
|
||||||
|
update: {
|
||||||
|
actions: %w[tag_groups#update],
|
||||||
|
params: %i[id],
|
||||||
|
},
|
||||||
|
},
|
||||||
categories: {
|
categories: {
|
||||||
list: {
|
list: {
|
||||||
actions: %w[categories#index],
|
actions: %w[categories#index],
|
||||||
|
@ -4856,6 +4856,11 @@ en:
|
|||||||
list: List latest posts and private posts. RSS is also supported.
|
list: List latest posts and private posts. RSS is also supported.
|
||||||
tags:
|
tags:
|
||||||
list: List tags.
|
list: List tags.
|
||||||
|
tag_groups:
|
||||||
|
list: Get a list of tag groups.
|
||||||
|
show: Get a single tag group by id.
|
||||||
|
create: Creates a tag group.
|
||||||
|
update: Updates a tag group specified by id.
|
||||||
categories:
|
categories:
|
||||||
list: Get a list of categories.
|
list: Get a list of categories.
|
||||||
show: Get a single category by id.
|
show: Get a single category by id.
|
||||||
|
@ -430,6 +430,7 @@ RSpec.describe Admin::ApiController do
|
|||||||
"email",
|
"email",
|
||||||
"posts",
|
"posts",
|
||||||
"tags",
|
"tags",
|
||||||
|
"tag_groups",
|
||||||
"uploads",
|
"uploads",
|
||||||
"user_status",
|
"user_status",
|
||||||
"global",
|
"global",
|
||||||
|
Loading…
Reference in New Issue
Block a user