261120_01_ENH: 변경 정보, 관계자 정보 파트 재단이 수정할 수 있도록 수정

This commit is contained in:
2026-11-20 12:26:30 +09:00
parent 82496b6ce4
commit ca2c61d8eb
2 changed files with 31 additions and 22 deletions

View File

@@ -29,6 +29,7 @@ import {
filterPerformance,
getCodeLabel,
includesText,
isFoundationRole,
isInternalRole,
isResearcherRole,
isWrittenReviewerRole
@@ -122,6 +123,7 @@ const PerformancePage = () => {
const userRole = auth.user?.userRole;
const userId = auth.user?.userId;
const canEdit = isInternalRole(userRole);
const canEditNoticeAndStaff = isFoundationRole(userRole);
const canDelete = isResearcherRole(userRole);
const isWrittenReviewer = isWrittenReviewerRole(userRole);
const {isDialogOpen, showDialog, hideDialog} = useDialog();
@@ -656,6 +658,7 @@ const PerformancePage = () => {
performance={detailData ?? data.find((item) => item.id === selectedId) ?? null}
codes={codes}
canEdit={canEdit}
canEditNoticeAndStaff={canEditNoticeAndStaff}
canDelete={canDelete}
onSave={(draft) => updateMutation.mutate(draft)}
onDelete={deletePerformance}