From 689cd27e736d0d3eabf04b54c0e447e0ab96c7ba Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 2 Nov 2023 23:55:43 +0100 Subject: [PATCH] add groups enable and remove --- web/js/users.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/js/users.js b/web/js/users.js index 483ea2c..50302e3 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -101,14 +101,14 @@ instance.get("users", {withCredentials: true, params:param}).then(function(respo checkboxList = document.getElementsByClassName("checkboxList"); for (var j=0; j 0){ userids.push(userid); } } } - param["userids"]=userids; + param["ids"]=userids; switch(e.currentTarget.id){ case "disableUserButton": @@ -118,7 +118,6 @@ instance.get("users", {withCredentials: true, params:param}).then(function(respo case "removeUserButton": httpMethod = "delete"; httpUrl = "users/groups?remove=true"; - param["remove"]=true; break; default: httpMethod = "patch"; @@ -128,7 +127,7 @@ instance.get("users", {withCredentials: true, params:param}).then(function(respo instance({ method: httpMethod, url: httpUrl, - params:param, + data:param, withCredentials: true }) .then(function(response){