Add force parameter in assign member role.
This commit is contained in:
parent
a536386a3a
commit
91511ee279
|
@ -37,7 +37,9 @@ public class RoleManagement {
|
||||||
}
|
}
|
||||||
|
|
||||||
public JsonElement assignMemberRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException {
|
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 {
|
public JsonElement assignManagerRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException {
|
||||||
|
|
Loading…
Reference in New Issue