mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 16:22:20 +08:00
DEV: Add API scope for categories endpoint (#16105)
This change adds support for the categories endpoint to have an api scope. Only adds GET scope for listing categories and for fetching a single category. See: https://meta.discourse.org/t/218080/4
This commit is contained in:
@ -235,7 +235,7 @@ describe Admin::ApiController do
|
||||
|
||||
scopes = response.parsed_body['scopes']
|
||||
|
||||
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts', 'uploads', 'global', 'badges')
|
||||
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts', 'uploads', 'global', 'badges', 'categories')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user