mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing tenanted username
This commit is contained in:
parent
1721824d53
commit
4aee621039
@ -96,9 +96,8 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService {
|
||||
sortByFields.add(sortByField);
|
||||
|
||||
// this is the user who initiates the request
|
||||
String authorizedUser = MultitenantUtils.getTenantAwareUsername(
|
||||
CarbonContext.getThreadLocalCarbonContext().getUsername() + "@" +
|
||||
CarbonContext.getThreadLocalCarbonContext().getTenantDomain());
|
||||
String authorizedUser = CarbonContext.getThreadLocalCarbonContext().getUsername() + "@" +
|
||||
CarbonContext.getThreadLocalCarbonContext().getTenantDomain();
|
||||
|
||||
try {
|
||||
String tenantDomain = MultitenantUtils.getTenantDomain(authorizedUser);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user