Project

General

Profile

« Previous | Next » 

Revision 61922

Add force parameter in assign member role.

View differences:

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