0
Fork 0
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:
Thibaut Patel 2021-04-27 20:49:09 +02:00
parent d17c68ba96
commit af35d5986a

View file

@ -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;
}