Skip to content

Commit

Permalink
Fixes #538 - UpdateDocumentAssetCommand: throwing permission error wh…
Browse files Browse the repository at this point in the history
…en executing with elevated permissions/system user execution context as BackgroundTask
  • Loading branch information
HeyJoel committed May 9, 2023
1 parent a71dc4b commit dcb6f06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async Task ExecuteAsync(UpdateDocumentAssetCommand command, IExecutionCon
FileExtension = documentAsset.FileExtension
};

await _commandExecutor.ExecuteAsync(deleteOldFileCommand);
await _commandExecutor.ExecuteAsync(deleteOldFileCommand, executionContext);
await _documentAssetCommandHelper.SaveFile(command.File, documentAsset);
documentAsset.FileUpdateDate = executionContext.ExecutionDate;
}
Expand Down

0 comments on commit dcb6f06

Please sign in to comment.