mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix the user deletion issue in devicemgt react app
This commit is contained in:
parent
e1f7c3b073
commit
8d3ed2ed88
@ -372,8 +372,10 @@ public interface UserManagementService {
|
||||
|
||||
@DELETE
|
||||
@Path("/{username}")
|
||||
@Consumes(MediaType.WILDCARD)
|
||||
@ApiOperation(
|
||||
httpMethod = "DELETE",
|
||||
consumes = MediaType.WILDCARD,
|
||||
value = "Deleting a User",
|
||||
notes = "When an employee leaves the organization, you can remove the user details from WSO2 IoTS using " +
|
||||
"this REST API.",
|
||||
|
||||
@ -183,7 +183,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
||||
DEFAULT_SUBSCRIBER + "' is missing in the system");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
String[] roles = new String[tmpRoles.size()];
|
||||
tmpRoles.toArray(roles);
|
||||
|
||||
@ -363,6 +363,7 @@ public class UserManagementServiceImpl implements UserManagementService {
|
||||
|
||||
@DELETE
|
||||
@Path("/{username}")
|
||||
@Consumes(MediaType.WILDCARD)
|
||||
@Override
|
||||
public Response removeUser(@PathParam("username") String username, @QueryParam("domain") String domain) {
|
||||
if (domain != null && !domain.isEmpty()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user