public virtual ListQueryParameterObject configureQuery(ListQueryParameterObject query) { TenantCheck tenantCheck = query.TenantCheck; configureTenantCheck(tenantCheck); return(query); }
public virtual void configureTenantCheck(TenantCheck tenantCheck) { if (TenantCheckEnabled) { Authentication currentAuthentication = CurrentAuthentication; tenantCheck.TenantCheckEnabled = true; tenantCheck.AuthTenantIds = currentAuthentication.TenantIds; } else { tenantCheck.TenantCheckEnabled = false; tenantCheck.AuthTenantIds = null; } }