|
|
@ -438,10 +438,10 @@ public class RoleImpl implements org.wso2.carbon.device.mgt.jaxrs.api.Role {
|
|
|
|
String msg = "Error occurred while retrieving the list of user roles.";
|
|
|
|
String msg = "Error occurred while retrieving the list of user roles.";
|
|
|
|
throw new MDMAPIException(msg, e);
|
|
|
|
throw new MDMAPIException(msg, e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// removing all internal roles and roles created for Service-providers
|
|
|
|
// removing all internal roles, roles created for Service-providers and application related roles.
|
|
|
|
List<String> filteredRoles = new ArrayList<>();
|
|
|
|
List<String> filteredRoles = new ArrayList<>();
|
|
|
|
for (String role : roles) {
|
|
|
|
for (String role : roles) {
|
|
|
|
if (!(role.startsWith("Internal/") || role.startsWith("Authentication/"))) {
|
|
|
|
if (!(role.startsWith("Internal/") || role.startsWith("Authentication/") || role.startsWith("Application/"))) {
|
|
|
|
filteredRoles.add(role);
|
|
|
|
filteredRoles.add(role);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|