DEV: Add api scoping for updating topics. (#16101)
This change adds a new api scope for updating topics. See: https://meta.discourse.org/t/219805
This commit is contained in:
parent
94ea1afc43
commit
07e80b52ef
|
@ -22,6 +22,7 @@ class ApiKeyScope < ActiveRecord::Base
|
|||
},
|
||||
topics: {
|
||||
write: { actions: %w[posts#create], params: %i[topic_id] },
|
||||
update: { actions: %w[topics#update], params: %i[topic_id] },
|
||||
read: {
|
||||
actions: %w[topics#show topics#feed topics#posts],
|
||||
params: %i[topic_id], aliases: { topic_id: :id }
|
||||
|
|
|
@ -4213,6 +4213,7 @@ en:
|
|||
topics:
|
||||
read: Read a topic or a specific post in it. RSS is also supported.
|
||||
write: Create a new topic or post to an existing one.
|
||||
update: Update a topic. Change the title, category, tags, etc.
|
||||
read_lists: Read topic lists like top, new, latest, etc. RSS is also supported.
|
||||
wordpress: Necessary for the WordPress wp-discourse plugin to work.
|
||||
posts:
|
||||
|
|
Loading…
Reference in New Issue