Skip to content

Commit cc2de86

Browse files
authored
Merge pull request #4359 from diwosuwanto/feature/project-plan-simplification-0
Fix: hide actual phase status from customers
2 parents 714d537 + faed0b7 commit cc2de86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)