Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 5fad29a254 Copy only the subtasks the copier may copy (AssignedBleed copy sibling).
A copy of a card took every subtask of it. An assigned-only member who
copied a card assigned to them got copies of its subtasks assigned to
others, and any member got copies of its subtasks on boards they cannot
read - a parent may have subtasks on another board (#3626). Card.copy and
the durable rule copy now carry only the subtasks the copier could read and
copy themselves (models/lib/boardCardScope.js copyableSubtasks); a copy
with no acting user, made inside the server, keeps them all as before.

Not recorded in Admin Panel / Problems: copying a card with subtasks is
ordinary use, and the copy simply leaves out what the copier may not have.

Tests: tests/copySubtaskScope.test.cjs (the decision, and a scan that every
place copying subtasks filters them) and a server test through copyCard,
which without the fix gave an assigned-only member copies of another
member's subtask and of one on a private board.

Thanks to xet7 !
2026-10-03 10:05:47 +03:00