Skip to content

Commit d01acf5

Browse files
committed
Fixes Issue #1512: Members of a team should be able to create tasks
1 parent a16c9ac commit d01acf5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList

src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/TaskList/TaskList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ const TaskList = ({ project }: TaskListProps) => {
7676
isWorkPackageLeadOrManager ||
7777
project.projectManager?.userId === user.userId ||
7878
project.teams.some((team) => team.head.userId === user.userId) ||
79-
project.teams.some((team) => team.leads.map((lead) => lead.userId).includes(user.userId));
79+
project.teams.some((team) => team.leads.map((lead) => lead.userId).includes(user.userId)) ||
80+
project.teams.some((team) => team.members.map((member) => member.userId).includes(user.userId));
8081

8182
const addTaskButton: JSX.Element = (
8283
<Button

0 commit comments

Comments
 (0)