Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Extend the topics:read API scope to allow read by external_id (#22536)

Jamie Dunstan56e792df9b9a
diff --git a/app/models/api_key_scope.rb b/app/models/api_key_scope.rb
index f6662815b7e..27f9162035a 100644
--- a/app/models/api_key_scope.rb
+++ b/app/models/api_key_scope.rb
@@ -35,8 +35,8 @@ class ApiKeyScope < ActiveRecord::Base
actions: %w[topics#destroy],
},
read: {
- actions: %w[topics#show topics#feed topics#posts],
- params: %i[topic_id],
+ actions: %w[topics#show topics#feed topics#posts topics#show_by_external_id],
+ params: %i[topic_id external_id],
aliases: {
topic_id: :id,
},