@ -46,6 +46,8 @@ namespace Squidex.Config.Domain
.As<IRunnable>();
services.AddSingletonAs<RuleDequeuer>()
services.AddSingletonAs<ContentScheduler>()
}
var exposeSourceUrl = config.GetOptionalValue("assetStore:exposeSourceUrl", true);
@ -25,6 +25,11 @@ namespace Squidex.Pipeline.CommandMiddlewares
public async Task HandleAsync(CommandContext context, Func<Task> next)
{
if (httpContextAccessor.HttpContext == null)
return;
var headers = httpContextAccessor.HttpContext.Request.Headers;
var headerMatch = headers["If-Match"].ToString();
@ -27,6 +27,11 @@ namespace Squidex.Pipeline.CommandMiddlewares
public Task HandleAsync(CommandContext context, Func<Task> next)
return next();
if (context.Command is SquidexCommand squidexCommand)
if (squidexCommand.Actor == null)
if (context.Command is IAppCommand appCommand && appCommand.AppId == null)
var appFeature = httpContextAccessor.HttpContext.Features.Get<IAppFeature>();
@ -29,6 +29,11 @@ namespace Squidex.Pipeline.CommandMiddlewares
if (actionContextAccessor.ActionContext == null)
await next();
if (context.Command is ISchemaCommand schemaCommand && schemaCommand.SchemaId == null)
NamedId<Guid> appId = null;