5 Commits
Author SHA1 Message Date
Lauri Ojansivu 3da444db74 Close the LinkedWriteBleed REST sibling: linked cards over REST follow the Link popup's rule.
POST /api/boards/:boardId/lists/:listId/cards with linkedId checked only READ
access to the source card's board and cloned the whole source card with
Card.link(), so a read-only, read-assigned-only or comment-assigned-only member
could link and copy cards - including unassigned ones and their descriptions -
into a board they control, which the createLinkedCard method refuses.

Both now call one createLinkedCardFor(): write access to the source board, an
assigned-only member links only cards assigned to them (a check the method
lacked as well), the list and swimlane must belong to the destination board,
and the link holds the title, not a copy. Refusals record LinkedWriteBleed with
source rest:card-link. The tests that pinned the method's body follow the
shared function; the negative test fails if the REST branch checks only read
access or clones the card again. A browser test covers the REST roles.

Thanks to xet7 !
2026-10-02 10:26:57 +03:00
Lauri Ojansivu 3b3f7ebd77 Allow same-board linked cards while retaining link and write guards
The card-link picker excluded every real card on its own board, and the
server rejected same-board sources. Include the current board and exclude
only sources already mirrored. Preserve coordinate and write validation,
reject link chains, and prevent whole-board self-links through both buttons.

Labels already use the source card. Verify live source-to-mirror updates
and edits through the mirror, same-board authorization failures, whole-board
self-link rejection, and existing cross-board behavior in Chromium.
Focused linked-card Node regression suites pass.

Thanks to RinTheCatato, mohamed-aziz-chamakh and xet7 !

Fixes #5683,
2026-09-27 00:09:56 +03:00
Lauri Ojansivu 26e9e70304 Prevent linked cards from promoting non-writing source roles
Require source write access for authoritative and DDP link creation, including pointer changes. Treat explicit non-writing source roles as a ceiling on delegated writes, covering legacy self-created links. Match UI permissions and remove the link action from the non-writer menu. Record denied writes in bounded Problems summaries.

Actual shared permission decisions for every role, creation/deny inventory and existing link and role suites pass. Browser regression syntax-check passes; live execution pending.

Thanks to Wenhao Wu, Southeast University and xet7 !
2026-09-14 12:05:14 +03:00
Lauri Ojansivu a830cae647 Keep linked-card position outside the Blaze event view.
Thanks to xet7 !
2026-08-18 18:16:47 +03:00
Lauri Ojansivu 798390c6fc Restore cross-board linked-card creation.
Thanks to ClemStrummer and xet7 !

Fixes #6613.
2026-08-18 18:10:47 +03:00