New Edit Content: a user without edit permission gets an empty command bar instead of a read-only form

未关闭
#38,649 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java, typescript

调研方向

Start with core-web/libs/edit-content/src/lib/store/features/user/ and form.feature.ts, then trace how EDIT and PUBLISH permissions affect the form, sidebar actions, and command bar. Add coverage for the three permission combinations described in the acceptance criteria; done means read-only fields and a permission message without EDIT, and only permitted actions with EDIT but without PUBLISH.

由索引模型根据 Issue 内容生成。

描述

dotCMS: New Edit Contentlet Team : Scout Type : Defect
Problem Statement

When a user who can read but not edit a contentlet opens it in the new Edit Content Screen, the workflow command bar is empty and nothing tells the user why. The form looks editable, edits are accepted, and there is no way to save them. Decided on 2026-10-15 in #feat-edit-content: render the form read-only with the message "You don't have permission to edit". The full prototype from design is pending; this ticket tracks the implementation.

Steps to Reproduce
  1. Create a role with READ but not EDIT on a content type and on an existing contentlet; assign it to a user with the Content portlet.
  2. Log in as that user and open the contentlet in the new editor.

Expected: read-only fields and a permission message. Actual: editable fields, empty command bar, no message.

Acceptance Criteria
  • Without EDIT permission every field is rendered disabled and the sidebar actions that need EDIT are hidden.
  • A message explains that the user does not have permission to edit.
  • With EDIT but without PUBLISH, the command bar shows only the actions the user can run.
  • Spec covers the three permission combinations.
dotCMS Version

main (2026-11-18)

Severity

Serious

Links
  • #38634 pillar; related #34787
  • Code: core-web/libs/edit-content/src/lib/store/features/user/, form.feature.ts
主要语言
Java
星标
972
派生
493
平均合并
2 天 12 小时
30 天内合并 PR
228

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotCMS/core 的其他 Issue

查看 dotCMS/core 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。