Skip to content

Commit b70b490

Browse files
authored
Merge pull request #2901 from appirio-tech/hotfix/enable_copilots_to_edit_phasecard
[MASTER]Hotfix/enable copilots to edit phasecard
2 parents 7b32a2b + c4b3a35 commit b70b490

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/projects/detail/components/PhaseCard/PhaseCard.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@ class PhaseCard extends React.Component {
9393
hasReadPosts,
9494
phaseId,
9595
isExpanded,
96+
project
9697
} = this.props
9798
const progressInPercent = attr.progressInPercent || 0
9899

99100
let status = attr && attr.status ? attr.status : PHASE_STATUS_DRAFT
100101
status = _.find(PHASE_STATUS, s => s.value === status) ? status : PHASE_STATUS_DRAFT
101102
const statusDetails = _.find(PHASE_STATUS, s => s.value === status)
102103

103-
const phaseEditable = checkPermission(PERMISSIONS.EDIT_PROJECT_PLAN) && status !== PHASE_STATUS_COMPLETED && projectStatus !== PROJECT_STATUS_CANCELLED && projectStatus !== PROJECT_STATUS_COMPLETED
104+
const phaseEditable = checkPermission(PERMISSIONS.EDIT_PROJECT_PLAN, project) && status !== PHASE_STATUS_COMPLETED && projectStatus !== PROJECT_STATUS_CANCELLED && projectStatus !== PROJECT_STATUS_COMPLETED
104105

105106

106107
const hasUnseen = hasReadPosts

src/projects/detail/components/ProjectStage.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ class ProjectStage extends React.Component{
213213
isExpanded={_.get(phaseState, 'isExpanded')}
214214
collapseProjectPhase={collapseProjectPhase}
215215
expandProjectPhase={expandProjectPhase}
216+
project={project}
216217
>
217218
<div id={projectPhaseAnchor}>
218219
<ProjectStageTabs

0 commit comments

Comments
 (0)