From 089c70ffbe2303ab5e2611a152ddd3aed0e6e718 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Sep 2025 09:09:15 +0000
Subject: (최겸) 구매 pq, 기본정보 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/vendor-regular-registrations/document-status-dialog.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'components/vendor-regular-registrations/document-status-dialog.tsx')

diff --git a/components/vendor-regular-registrations/document-status-dialog.tsx b/components/vendor-regular-registrations/document-status-dialog.tsx
index 848e4977..cfdd03fd 100644
--- a/components/vendor-regular-registrations/document-status-dialog.tsx
+++ b/components/vendor-regular-registrations/document-status-dialog.tsx
@@ -21,6 +21,7 @@ interface DocumentStatusDialogProps {
   onOpenChange: (open: boolean) => void;
   registration: VendorRegularRegistration | null;
   onRefresh?: () => void;
+  isVendorUser?: boolean;
 }
 
 const StatusIcon = ({ status }: { status: string | boolean }) => {
@@ -68,6 +69,7 @@ export function DocumentStatusDialog({
   onOpenChange,
   registration,
   onRefresh,
+  isVendorUser = false,
 }: DocumentStatusDialogProps) {
   if (!registration) return null;
 
@@ -82,6 +84,11 @@ export function DocumentStatusDialog({
         registrationKeys: Object.keys(registration),
         fullRegistration: registration
       });
+      //isvendoruser인 경우는 실사 결과 파일 다운로드 불가능
+      if (isVendorUser && docKey === "auditResult") {
+        toast.error("실사 결과 파일은 다운로드할 수 없습니다.");
+        return;
+      }
 
       // documentFiles가 없는 경우 처리
       if (!registration.documentFiles) {
-- 
cgit v1.2.3

