Skip to content

Commit c77fc7f

Browse files
author
Sachin Maheshwari
committed
#1307 - correcting previous logic to allow all managers to change project status. Facing issue in changing status to active if manager is not part of that project - looks like need something at backend level for this kind of project - working on this
1 parent f746b5a commit c77fc7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/projects/list/components/Projects/ProjectCardBody.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function ProjectCardBody({ project, duration, currentMemberRole, descLinesCount
1414
onChangeStatus, isManager }) {
1515
if (!project) return null
1616

17-
const canEdit = currentMemberRole
18-
&& (_.indexOf([PROJECT_ROLE_COPILOT], currentMemberRole) > -1 || isManager)
17+
const canEdit = isManager || (currentMemberRole
18+
&& (_.indexOf([PROJECT_ROLE_COPILOT], currentMemberRole) > -1))
1919

2020
return (
2121
<div className="project-card-body">

0 commit comments

Comments
 (0)