Revision 61922
Added by Konstantinos Triantafyllou over 2 years ago
modules/dnet-openaire-users/trunk/src/main/java/eu/dnetlib/openaire/usermanagement/utils/RoleManagement.java | ||
---|---|---|
37 | 37 |
} |
38 | 38 |
|
39 | 39 |
public JsonElement assignMemberRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException { |
40 |
return this.httpUtils.post(url + "/member/" + mapType(type, false) + "/" + id, getSessionCookie(request), null, null); |
|
40 |
Map<String, String> params = new HashMap<>(); |
|
41 |
params.put("force", "true"); |
|
42 |
return this.httpUtils.post(url + "/member/" + mapType(type, false) + "/" + id, getSessionCookie(request), null, params); |
|
41 | 43 |
} |
42 | 44 |
|
43 | 45 |
public JsonElement assignManagerRole(String type, String id, HttpServletRequest request) throws HttpClientErrorException { |
Also available in: Unified diff
Add force parameter in assign member role.