mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Exposed a read-only public oauth enabled/disabled configuration
issue https://github.com/TryGhost/Team/issues/614 The new flag is only appearing when oauth is configured.
This commit is contained in:
parent
d17c68ba96
commit
af35d5986a
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,10 @@ const site = {
|
|||
url: urlUtils.urlFor('home', true),
|
||||
version: ghostVersion.safe
|
||||
};
|
||||
if (settingsCache.get('oauth_client_id') && settingsCache.get('oauth_client_secret')) {
|
||||
// Only set the oauth flag if oauth is enabled to avoid API changes
|
||||
response.oauth = true;
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue