@ -30,7 +30,7 @@ namespace Squidex.Pipeline.CommandHandlers
public Task<bool> HandleAsync(CommandContext context)
{
if (context.Command is SquidexCommand squidexCommand)
if (context.Command is SquidexCommand squidexCommand && squidexCommand.Actor == null)
var actorToken =
FindActorFromSubject() ??
@ -29,7 +29,7 @@ namespace Squidex.Pipeline.CommandHandlers
if (context.Command is AppCommand appCommand)
if (context.Command is AppCommand appCommand && appCommand.AppId == null)
var appFeature = httpContextAccessor.HttpContext.Features.Get<IAppFeature>();
@ -34,7 +34,7 @@ namespace Squidex.Pipeline.CommandHandlers
public async Task<bool> HandleAsync(CommandContext context)
if (context.Command is SchemaCommand schemaCommand)
if (context.Command is SchemaCommand schemaCommand && schemaCommand.SchemaId == null)
var routeValues = actionContextAccessor.ActionContext.RouteData.Values;