mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-21 20:03:18 +03:00
Fixed bug where non-admins in multi user mode could change the settings if they could open the dialog
This commit is contained in:
@@ -1892,7 +1892,7 @@ app.get('/api/config', function(req, res) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/api/setConfig', function(req, res) {
|
app.post('/api/setConfig', optionalJwt, function(req, res) {
|
||||||
let new_config_file = req.body.new_config_file;
|
let new_config_file = req.body.new_config_file;
|
||||||
if (new_config_file && new_config_file['YoutubeDLMaterial']) {
|
if (new_config_file && new_config_file['YoutubeDLMaterial']) {
|
||||||
let success = config_api.setConfigFile(new_config_file);
|
let success = config_api.setConfigFile(new_config_file);
|
||||||
|
|||||||
Reference in New Issue
Block a user