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

Đang mở
#38,649 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, typescript
Lĩnh vực
authorization, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
972
Fork
493
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
228

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotCMS/core

Tất cả issue của dotCMS/core

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.