PA6 补齐权限与审计回归

这个提交包含在:
2026-05-12 08:29:18 +08:00
父节点 aec660a8fe
当前提交 a0dc6fc408
共修改 13 个文件,包含 645 行新增和 42 行删除
+12
查看文件
@@ -2645,6 +2645,18 @@ async function reimbursementRoutes(fastify) {
throw error;
}
await fastify.prisma.auditLog.create({
data: buildAuditLogData(request, {
actorId: request.employee.id,
action: "REIMBURSEMENT_ATTACHMENT_DOWNLOADED",
targetType: "reimbursement",
targetId: reimbursementId,
extra: {
attachmentId: attachment.id,
},
}),
});
reply.type(attachment.mime_type || "application/octet-stream");
reply.header(
"content-disposition",