Fix group retrieving issues

pull/186/head
Rajitha Kumara 1 year ago
parent e7f12be117
commit 2b8e4b7c63

@ -673,7 +673,7 @@ public class GroupManagementProviderServiceImpl implements GroupManagementProvid
@Override
public DeviceGroup getUserOwnGroup(int groupId, boolean requireGroupProps, int depth) throws GroupManagementException {
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
String username = ctx.getUsername() + "@" + ctx.getTenantDomain(true);
String username = ctx.getUsername();
int tenantId = ctx.getTenantId();
List<Integer> userOwnGroupIds = this.getGroupIds(username);
if (userOwnGroupIds == null) {

Loading…
Cancel
Save