mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 17:11:07 +08:00
FEATURE: Add read-only scope to API keys (#14856)
This commit adds a global read-only scope that can be used to create new API keys.
This commit is contained in:
@ -237,7 +237,7 @@ describe Admin::ApiController do
|
||||
|
||||
scopes = response.parsed_body['scopes']
|
||||
|
||||
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts')
|
||||
expect(scopes.keys).to contain_exactly('topics', 'users', 'email', 'posts', 'global')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user