fix wtv-setup incorrect optimizations

This commit is contained in:
zefie
2025-08-12 16:41:53 -04:00
parent dcb8b72c1b
commit 733200c897
10 changed files with 25 additions and 27 deletions

View File

@@ -6,7 +6,7 @@ if (Object.keys(session_data.listPrimaryAccountUsers()).length == 1) {
}
else if (session_data.user_id != 0) errpage = wtvshared.doErrorPage(400, "You are not authorized to remove users from this account.");
var usersToRemove = [];
const usersToRemove = [];
Object.keys(request_headers.query).forEach(function (k) {
if (k.substr(0, 4) === "user" && request_headers.query[k] === "on") {
usersToRemove.push(parseInt(k.replace("user", "")));