File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/projects/detail/components Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments