Skip to content

comments: an ordinary member cannot delete their own comment; add an own-row delete door (maintainer ruling 7069889899) #36191

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

维护者速读

你 11-21 21:59 定了「普通成员能删自己的评论」(只能删自己的,删不了别人的)。现在默认权限里成员没有删评论的权限,所以连自己的评论也删不了,评论栏里自己的评论「更多」只有「编辑」。这张卡在服务端加一个「只删自己的评论」的入口,做法照搬表情和个人视图已经用过的那一套;做好后评论栏给自己的评论加上「删除」。

Facts

What to do

  1. Add an own-row delete door for sys_comment on the shared kit: the caller may delete a comment they authored, checked on the server; anyone else's comment is refused unless an existing grant already allows it (administrators, and the delete bit plus record edit path that feat(plugin-audit): a comment thread can be marked resolved and reopened #36104 / sys_comment_moderation already define).
  2. Decide and state in the PR what deleting a top-level comment with replies does (the review did not check it).
  3. Console: offer Delete on one's own comments through the door; keep others' rows as 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 left them.
  4. Tests on an org-bound rig with the security service on: a member deletes their own comment (2xx), another member's is refused, an admin is unchanged.
  5. Fix content/docs/.../plugin-detail.mdx wording on Delete (L1-c nit on 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) to the new behaviour.

Related: #36075, #36186 (the resolve door, same ruling comment), #36178.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T22:09Z · #36191, folded with #36186 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:

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:dispatched to seat 1 (as set); rationale: area:ux · Feature · an own-row delete door for sys_comment, so a member can delete their own comment and nobody else's (maintainer ruling 7069889899: 「普通成员能删自己的评论」); member_default cannot carry a delete bit (ADR-0090 D5); topic #36062 → p2 as filed · size S.

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

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions