Skip to content

console: Manage views, view settings and Create View are offered on isAdmin alone, so an org admin without manage_metadata meets a 403 #36448

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #36409 (PR #36398, only metadata admins share list views). The L1 found it and the PR names it as left untouched. Filed by the seat. Parent: #36409.

What happens

Manage views, the view settings panel and the Create View dialog in the console are gated on isAdmin alone. An organization administrator who lacks manage_metadata is offered them, and the server then refuses the write with 403. #36398 moves the Shared gate to manage_metadata; these three entries still read the old gate.

To do

  1. Gate the three entries on the same capability the server enforces for the write they lead to, read the way fix(console): Shared in Add view only for administrators who can write it, and published at once (#36409) #36398 reads it for the Shared gate.
  2. Pin each entry: hidden for an organization administrator without manage_metadata, shown with it.

Acceptance

  • An organization administrator without manage_metadata is not offered Manage views, the view settings panel or Create View, and so never meets the 403; one with it sees them as today.

Blocked-by: #36398

Grade

p2 · area:ux · domain:ui. A user is offered an action the server refuses.


Generated by Claude Code

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: area, pm:blocked and p2 stand as filed; rationale: area:ux · Bug · Manage views, view settings and Create View are offered on isAdmin alone, so an org admin without manage_metadata is offered actions that are then refused · size S.

  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Unblock · 2026-11-23T12:22Z: this card's only Blocked-by:, #36398, closed at 2026-11-22T13:21Z (merged or completed). The pm:blocked label was stale, so the card goes back to pm:queue. The grade is unchanged. Whoever picks it up re-reads the premise on a base that contains #36398.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 10 · 2026-11-23T21:33Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-36448
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36448 (w9-36448)
    Dispatch: p2 area:ux, non-epic permission-gate bug; its Blocked-by target #36398 is closed (unblocked 12:22Z). The maintainer resumed area:ux cards at 2026-11-23T21:18:46Z and restated it at 2026-11-23T21:23:47Z (「area ux 任务继续处理, p1 p2 专题任务优先」); p1+p2, epic children first, under the 15-thread cap.
    File surface: the console's Manage views, view settings and Create View entry gates in ui/packages (offered on manage_metadata, not on isAdmin alone), tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7100995434
    Premise: read from the card; the thread re-reads it on its base before code
    Serial constraints cleared: #36398 closed; no open PR names the card

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T21:42Z · same session as claim 7114622111, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbYXZHUaaZK86HquGRP
    Account: os-warren
    Branch: claude/project-thread-ik9gua
    Worktree: objectstack-issue-36448
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36448 (w9-36448)
    File surface: ui/packages/app-shell/src/views/ ObjectView.tsx, objectViewTitleSwitcher.tsx, objectViewPluginSchema.ts, ObjectDataPage.tsx, objectViewViewSharing.ts (one gate: mayShareViews with useCanAuthorMetadata, incl. Save as view, Rename and Save to this view, declared in place), tests beside them, a changeset
    Container & model: S, mode:thread, served opus, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: none
    Premise: holds on origin/main e0f0e9f
    Serial constraints cleared: no open PR names the card

  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbYXZHUaaZK86HquGRP
    os-dev-report

    {
      "issue": 36448,
      "status": "done",
      "branch": "claude/project-thread-ik9gua",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36782",
      "session": "session_01JQwxbYXZHUaaZK86HquGRP",
      "premise_still_valid": true,
      "summary": "Manage views, the view config panel and Create View (ObjectView JSX gates, title switcher Add view/Manage views, plugin allowCreateView and viewActions) plus ObjectDataPage Save as view now read mayManageViews(isAdmin, useCanAuthorMetadata()) instead of isAdmin alone; mayShareViews renamed to mayManageViews. Seat-approved in-place extension: a saved shared view's Rename and Save to this view read the same canManageViews. isAdmin alone still gates read-only surfaces.",
      "tests": "pnpm --dir ui exec vitest run on 4 files (new ObjectView.viewManagementGate-36448, ObjectDataPage.saveAsViewRefusal-11578 new describe, objectViewViewSharing, objectViewRecordNavigation.phonePush-29074): Test Files 4 passed (4), Tests 26 passed (26), after app-shell^... build exit 0. Reverse verification with sources restored to e0f0e9f7: 4 of 10 RED (3 without-capability cases as predicted; the plugin-schema control too, because the old hook takes isAdmin not canManageViews); restored via git checkout HEAD, git diff HEAD empty.",
      "gates": "38 derived families run locally at 10d4f442, all exit 0, --ran reconciles 38 of 38; app-shell type-check exit 0; CI at 10d4f442: 39 success, 13 expected skip, 0 failed, mergeable_state clean.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0 MCP GitHub calls",
      "api_writes": "3 — fleet-write pr_create (POST pulls + assignees), issue_patch PR body, this os-dev-report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Cleared · 2026-11-23T23:03Z: closed by the merge of #36782. The seat takes pm:dispatched and its assignee off.

  10. removed
    pm:dispatched
    on Nov 23, 2026
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

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions