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

Abierto
#38,649 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Java
Estrellas
972
Forks
493
Merge medio
2 d 12 h
PR fusionados (30 d)
228

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de dotCMS/core

Todos los issues de dotCMS/core

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.