mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +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;
|
pluginSettings = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//remove keys from providers
|
//remove keys from providers - create deep copy to avoid modifying cached config
|
||||||
if (pluginSettings && pluginSettings.providers) {
|
if (pluginSettings?.providers) {
|
||||||
for (const key in 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;
|
return pluginSettings;
|
||||||
|
|||||||
Reference in New Issue
Block a user