Skip to content

comments: an ordinary member cannot mark another member's thread resolved; the row floor refuses the resolution-only write that ruling 7063285032 allows #36186

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

维护者速读

你 11-21 13:26 定了「能看记录的人都能把讨论标成已解决」(7063285032,#36071)。#36104 已合并,但普通成员给别人发起的讨论点已解决时,服务器仍然拒绝;只有管理员和发起人自己能标。原因是平台的默认底线规则:普通成员只能改自己创建的数据。#36178 的评论栏已改成只在服务器会答应时才显示 ✓,所以现在没人会看到点了被拒的按钮,但你定的规则对普通成员还没生效。这张卡把它在服务端落实。做法取决于你在座位里那张「能编辑记录的同事,可以改别人评论的文字吗?」卡的答案,所以等那张卡有答案再开工。

Facts

  • Found by the L1-c review on PR feat(record-page): the comment panel resolves, reopens and filters threads and counts the unresolved ones; ✓ and Edit on others' comments appear only where the server admits them (#36075) #36178 (HOLD 7068026256) and confirmed on the dev rig with the security service on, plain org_member principals. A read-only member resolving another member's or an admin's thread gets 403 PERMISSION_DENIED on sys_comment; resolving their own gets 200.
  • Cause: owner_only_writes in packages/plugins/plugin-security/src/objects/default-permission-sets.ts (object: '*', operation: 'update', created_by == current_user.id, positions org_member). The pre-image check refuses the update before plugin-audit's resolution-only limb in comment-access-hooks.ts runs. sys_comment_moderation widens delete only, and its comment says widening the update limb is a separate decision.
  • feat(plugin-audit): a comment thread can be marked resolved and reopened #36104's acceptance tests ran on a rig with no security service, so they did not see the floor.
  • RLS predicates choose rows, not columns, so a plain update twin of sys_comment_moderation would also let members edit others' comment bodies (through the hook's dormant author-or-parent-editor limb). That is the open Sales question.
  • Seat-requested review with options, test list and risks: build-seat1/36075/pr2/fable-decisions.md in the project folder (问题一).

What to do (after the Sales answer)

Related: #36075, #36071, #36104, #36178.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (and the plugin-security permission floor) · pm:queue; rationale: area:ux · Bug · the maintainer ruled that anyone who can read a record can mark its discussion resolved (7063285032), but after #36104 an ordinary member resolving another member's thread is refused 403 by the owner_only_writes floor; the tests of #36104 ran without the security service; a plain update grant would also let members edit others' comment bodies, so the fix waits on an open maintainer question → p2 as filed · size S once answered. Topic #36062.

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T22:01Z · comment write permissions found by the review of PR #36178 (reviewed by fable first, build-seat1/36075/pr2/fable-decisions.md in the project folder)

    At 2026-11-21T21:59Z the maintainer answered two seat decision cards:

    1. 「能编辑记录的同事,可以改别人评论的文字吗?」: option 0, 「只有作者能改」. A comment's text stays author-only for ordinary members; administrators are unchanged. So this card takes the dedicated resolve door: a server-side path that writes only the resolution fields (is_resolved, resolved_by, resolved_at) after checking the caller can read the parent record, with the owner_only_writes floor left as it is. The one-line sys_comment update twin is ruled out, because it would also let record editors rewrite others' comments. Tests must show a member's body edit of another member's comment is still refused.
    2. 「普通成员能删自己的评论吗?」: option 0, 「加删自己评论的入口」. Members may delete their own comments and not others'. That is a separate backend card (own-row delete door), filed next; the console then offers Delete on one's own comments.

    Ruling 7063285032 (any reader may resolve) stands and is what this card delivers.

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T22:08Z · #36186, folded with #36191 into one PR (two server-side comment doors, maintainer ruling 7069889899 on #36186).
    Area: b1-CM (epic #36062)
    Session: session_01L6bhgUH1jEKbDzYRc4nghq (card thread)
    Account: os-sales
    Branch: claude/project-thread-bvfzy8 (from main 6c7c6db)
    File surface: plugin-audit comment routes beside the existing unreact door (two new doors and their census rows), the resolution stamp's attribution, the console's comment wiring in plugin-detail and app-shell RecordDetailView.tsx (comment handlers only), a new affordance row, tests, docs, changeset.
    Container & model: M, card thread, model: opus, effort: high
    Clause-②: yes (widening): two new REST routes and a new affordance row.
    Metadata-protocol: none
    Premise (thread, file build-seat1/36186-36191/premise-read.md in the project folder): holds.
    Scope, the seat's reading:

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions