refactor(storage): scope exports by owner
This commit is contained in:
@@ -190,7 +190,7 @@ public sealed class CvVariantController : ControllerBase
|
||||
if (user is null) return Unauthorized();
|
||||
var render = await _variants.RenderAsync(user.Id, id, Person(user), ct);
|
||||
if (render is null) return NotFound();
|
||||
var artifact = await _pdf.ExportAsync(new TailoredCvRenderResult(render.ThemeId, render.SuggestedFileName, render.Html), ct);
|
||||
var artifact = await _pdf.ExportAsync(user.Id, new TailoredCvRenderResult(render.ThemeId, render.SuggestedFileName, render.Html), ct);
|
||||
return File(artifact.Bytes, "application/pdf", artifact.FileName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user