diff options
Diffstat (limited to 'components/vendor-regular-registrations/document-status-dialog.tsx')
| -rw-r--r-- | components/vendor-regular-registrations/document-status-dialog.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
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) {
|
