mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing issue where super tenant table space is querried instead of relavent tenant when retrieving geo location data
This commit is contained in:
parent
cb0fb87b49
commit
1721824d53
@ -97,7 +97,8 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
|
|||||||
|
|
||||||
// this is the user who initiates the request
|
// this is the user who initiates the request
|
||||||
String authorizedUser = MultitenantUtils.getTenantAwareUsername(
|
String authorizedUser = MultitenantUtils.getTenantAwareUsername(
|
||||||
CarbonContext.getThreadLocalCarbonContext().getUsername());
|
CarbonContext.getThreadLocalCarbonContext().getUsername() + "@" +
|
||||||
|
CarbonContext.getThreadLocalCarbonContext().getTenantDomain());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String tenantDomain = MultitenantUtils.getTenantDomain(authorizedUser);
|
String tenantDomain = MultitenantUtils.getTenantDomain(authorizedUser);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user