changes after review

This commit is contained in:
Rodica Sutu
2018-03-30 09:53:43 +03:00
parent 0ac7014cd9
commit 88ce6b7e66
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ package org.alfresco.rest.rm.community.model.user;
*/
public enum UserRoles
{
IN_PLACE_WRITERS("ExtendedWriters","In-Place Writers"),
ROLE_RM_ADMIN("Administrator","Records Management Administrator"),
ROLE_RM_MANAGER ("RecordsManager","Records Management Manager"),
ROLE_RM_POWER_USER ("PowerUser","Records Management Power User"),

View File

@@ -117,7 +117,7 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public Set<String> getCapabilitiesForRole(String adminUser, String adminPassword, String role)
{
JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES).getJSONObject("data");
JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject("data");
assertTrue("Could not find role '" + role + "' in " + jsonObject.keySet(), jsonObject.has(role));
return jsonObject.getJSONObject(role).getJSONObject("capabilities").keySet();
}