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