tenant auto assign fix
This commit is contained in:
parent
72230b6b0a
commit
04e857542c
|
@ -124,7 +124,8 @@ public class TenantInterceptor implements WebRequestInterceptor {
|
|||
if (cacheValue != null) {
|
||||
isUserAllowedTenant = cacheValue.isAllowed();
|
||||
} else {
|
||||
isUserAllowedTenant = this.isUserAllowedTenant();
|
||||
List<String> tenants = this.claimExtractor.asStrings(this.currentPrincipalResolver.currentPrincipal(), ClaimNames.TenantCodesClaimName);
|
||||
if (tenants.contains(this.tenantScope.getTenantCode())) isUserAllowedTenant = this.isUserAllowedTenant();
|
||||
this.userAllowedTenantCacheService.put(new UserAllowedTenantCacheService.UserAllowedTenantCacheValue(this.userScope.getUserId(), this.tenantScope.getTenant(), isUserAllowedTenant));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue