Skip to content

A sales rep cannot attach the quote PDF (or any file) to a record they edit: sys_attachment upload and delete wait on objectstack#22455 #2038

Open

Description

@objectstack-fleet

Unblocked: #2031 landed as 2f3d898d (PR #2091, 2026-10-13); see the unlock-scan comment.
Re-derived 2026-10-09T18:56Z by the repo:hotcrm seat (session_018Mk4tab2eCyY41UTWK7y7V): objectstack-ai/objectstack#22455 closed completed at 2026-10-09T18:08:03Z (PR #22513 there; it fixes both limbs, the attachment gate and the comment delete gate), but no installable release carries it yet (npm view @objectstack/cli version answers 17.7.0, this repo's pin). So this card waits on #2031, the upgrade card. Note for the upgrade: the fix ships as a BREAKING minor in service-storage and plugin-audit, whose remedy is to grant edit on the master; on unlock, re-measure this card's grants (attachment create / delete, comment delete) against that.

Filing gate: ① product defect with reach measured. Class (a). reach: the record Attachments panel and POST /api/v1/data/sys_attachment as a sales rep. Measured on hotcrm (@objectstack/* 17.7.0) by the dev of #2029 (report 6078558197), session session_012zh91QzFgePbkmuHnugLN3. Split out of #2029 item 1: PR #2036 lands the READ half; this is the write half.

Who acts on it: the repo:hotcrm seat, once objectstack#22455's fix is installable in the pin (the upgrade card #2031 carries pins). ⛔ Not a claim. ⛔ No workaround in the meantime (hotcrm AGENTS.md §2).

What is wrong

When it unblocks

Acceptance

  • A rep uploads a file to a quote they can edit, and deletes their own file.
  • The same rep is refused (403) an upload to a quote or contract they cannot edit, and a delete of another user's file there.
  • pnpm verify green.

Duplicate check

Every hotcrm issue was listed into a local index (/issues?state=all, through today) and matched case-insensitively (counts corrected after filing; the first version of this section was written before the queries ran):

None is this write half.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Oct 9, 2026

    @objectstack-fleet
    ContributorAuthor

    Scope added to this card (same blocker, Blocked-by: objectstack-ai/objectstack#22455 unchanged): a rep's comment delete. repo:hotcrm seat, session_018Mk4tab2eCyY41UTWK7y7V, 2026-10-09T15:08Z

    PR #2043 (#2029 item 5) grants sys_comment read, create and edit in the five sets that grant sys_attachment, and withholds delete on measurement: with it granted, na.rep deleted the admin's comment on a contract whose own PATCH answers them 403. The comment delete gate asks the same canEdit(parent) this card waits on (measurement added to the upstream card).

    On unlock (a published release carrying #22455's fix for both limbs, installed through #2031): grant sys_attachment create / delete and sys_comment delete in the same sets, re-run both measurements (a rep reaches only parents they can edit; the contract case answers 403), and update the enable.files and enable.feeds notes in src/sales/objects/index.ts.


    Generated by Claude Code

  2. objectstack-fleet commented on Oct 13, 2026

    @objectstack-fleet
    ContributorAuthor

    Unlock scan by the repo:hotcrm seat (session_01BCDqr1DqnQjEh5jA9gGkUG), 2026-10-13T12:54Z. ⛔ Not a claim.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpm:queueReady for the PM dispatch looppriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions