mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixes validation issue in create group
This commit is contained in:
parent
ab15813824
commit
1581775aa6
@ -109,7 +109,7 @@ public class GroupManagementServiceImpl implements GroupManagementService {
|
||||
log.error(msg, e);
|
||||
return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
|
||||
} catch (GroupAlreadyExistException e) {
|
||||
String msg = "Group already exists with name '" + group.getName() + "'.";
|
||||
String msg = "Group already exists with name \'" + group.getName() + "\'.";
|
||||
log.warn(msg);
|
||||
return Response.status(Response.Status.CONFLICT).entity(msg).build();
|
||||
}
|
||||
|
||||
@ -42,7 +42,5 @@ function onRequest(context) {
|
||||
if (userModule.isAuthorized("/permission/admin/device-mgt/users/view")) {
|
||||
page.canView = true;
|
||||
}
|
||||
|
||||
|
||||
return page;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user