add: super-tenant admin check

apim420
Thilina Sandaruwan 1 year ago committed by pasindu
parent fde6de94bb
commit 0581151248

@ -113,9 +113,10 @@ public class GroupManagementAdminServiceImpl implements GroupManagementAdminServ
request.setOwner(owner);
request.setStatus(status);
request.setDepth(depth);
boolean isAdmin = DEFAULT_ADMIN_ROLE.equals(currentUser);
PaginationResult deviceGroupsResult;
if (StringUtils.isBlank(currentUser)) {
if (StringUtils.isBlank(currentUser) || isAdmin) {
deviceGroupsResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
.getGroupsWithHierarchy(null, request, requireGroupProps);
} else {

Loading…
Cancel
Save