261120_01_ENH: 변경 정보, 관계자 정보 파트 재단이 수정할 수 있도록 수정
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user