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

Aperta
#38,649 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Java
Stelle
972
Fork
493
Merge medio
2g 12h
PR unite (30g)
228

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotCMS/core

Tutte le issue di dotCMS/core

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.