A platform for community discussion. Free, open, simple.
DEV: Add api scoping for updating topics. (#16101)
Blake Erickson07e80b52ef6f
diff --git a/app/models/api_key_scope.rb b/app/models/api_key_scope.rbindex d2e685d1654..eeb7934f12a 100644--- a/app/models/api_key_scope.rb+++ b/app/models/api_key_scope.rb@@ -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 }diff --git a/config/locales/client.en.yml b/config/locales/client.en.ymlindex 009d6f3060a..e6683a9fc16 100644--- a/config/locales/client.en.yml+++ b/config/locales/client.en.yml@@ -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: