Add force parameter in assign member role.

This commit is contained in:
Konstantinos Triantafyllou 2022-01-28 13:35:57 +00:00
parent a536386a3a
commit 91511ee279
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ public class RoleManagement {
}
public JsonElement assignMemberRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException {
return this.httpUtils.post(url + "/member/" + mapType(type, false) + "/" + id, getSessionCookie(request), null, null);
Map<String, String> params = new HashMap<>();
params.put("force", "true");
return this.httpUtils.post(url + "/member/" + mapType(type, false) + "/" + id, getSessionCookie(request), null, params);
}
public JsonElement assignManagerRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException {