File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/projects/detail/components/PhaseCard Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -225,15 +225,15 @@ class PhaseCard extends React.Component {
225225 }
226226
227227 < div styleName = "col hide-md" >
228- { status && ( isSimplePlan || status !== PHASE_STATUS_ACTIVE ) && ! this . props . currentUserRoles . includes ( PROJECT_ROLE_CUSTOMER ) &&
228+ { status && ( isSimplePlan || status !== PHASE_STATUS_ACTIVE ) && ! hasPermission ( PERMISSIONS . EXPAND_ACTIVE_PHASES_BY_DEFAULT ) &&
229229 ( < div styleName = "status-details" >
230230 < div styleName = { 'status ' + ( status ? status . toLowerCase ( ) : '' ) } >
231231 { statusDetails . name }
232232 </ div >
233233 </ div > )
234234 }
235235
236- { ! isSimplePlan && status && status === PHASE_STATUS_ACTIVE && ! this . props . currentUserRoles . includes ( PROJECT_ROLE_CUSTOMER ) &&
236+ { ! isSimplePlan && status && status === PHASE_STATUS_ACTIVE && ! hasPermission ( PERMISSIONS . EXPAND_ACTIVE_PHASES_BY_DEFAULT ) &&
237237 ( < div styleName = "status-details" >
238238 < div styleName = { 'status ' + ( status ? status . toLowerCase ( ) : '' ) } >
239239 < ProjectProgress
You can’t perform that action at this time.
0 commit comments