RED-4646: Removed default tenant
This commit is contained in:
parent
ee102be366
commit
7b00edc2d3
@ -8,7 +8,6 @@ import org.springframework.web.context.request.WebRequestInterceptor;
|
||||
@Component
|
||||
public class TenantInterceptor implements WebRequestInterceptor {
|
||||
|
||||
public static final String DEFAULT_TENANT = "redaction";
|
||||
public static final String TENANT_HEADER_NAME = "X-TENANT-ID";
|
||||
|
||||
|
||||
@ -17,8 +16,6 @@ public class TenantInterceptor implements WebRequestInterceptor {
|
||||
|
||||
if (request.getHeader(TENANT_HEADER_NAME) != null) {
|
||||
TenantContext.setTenantId(request.getHeader(TENANT_HEADER_NAME));
|
||||
} else {
|
||||
TenantContext.setTenantId(DEFAULT_TENANT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user