mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
Merge branch 'fix/admin-panel-bugs-5' of https://git.onlyoffice.com/ONLYOFFICE/server into fix/admin-panel-bugs-5
This commit is contained in:
@ -353,10 +353,13 @@ async function getPluginSettingsForInterface(ctx) {
|
||||
pluginSettings = undefined;
|
||||
}
|
||||
}
|
||||
//remove keys from providers
|
||||
if (pluginSettings && pluginSettings.providers) {
|
||||
//remove keys from providers - create deep copy to avoid modifying cached config
|
||||
if (pluginSettings?.providers) {
|
||||
for (const key in pluginSettings.providers) {
|
||||
pluginSettings.providers[key].key = '';
|
||||
if (pluginSettings.providers[key]?.key) {
|
||||
pluginSettings.providers[key] = JSON.parse(JSON.stringify(pluginSettings.providers[key]));
|
||||
pluginSettings.providers[key].key = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
return pluginSettings;
|
||||
|
||||
Reference in New Issue
Block a user