core: Explain what global setting we're setting when we ask permission.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 10m35s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 10m35s
This commit is contained in:
@@ -337,7 +337,7 @@ async function getProcessBlob(blobId, key, options) {
|
||||
};
|
||||
if (process.credentials?.permissions?.administration) {
|
||||
imports.core.globalSettingsSet = async function (key, value) {
|
||||
await imports.core.permissionTest('set_global_setting');
|
||||
await imports.core.permissionTest('set_global_setting', `Set ${JSON.stringify(key)} to ${JSON.stringify(value)}.`);
|
||||
print('Setting', key, value);
|
||||
let settings = await loadSettings();
|
||||
settings[key] = value;
|
||||
|
||||
Reference in New Issue
Block a user