Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection type fields are emptied on save #20484

Open
FRobaglia opened this issue Jun 10, 2024 · 0 comments
Open

Collection type fields are emptied on save #20484

FRobaglia opened this issue Jun 10, 2024 · 0 comments

Comments

@FRobaglia
Copy link

Bug report

Required System information

  • Node.js version: v20.14.0
  • NPM version: npm/10.7.0
  • Strapi version: 4.24.5
  • Database: SQLite (quickstart Strapi project)
  • Operating system: linux-x64
  • Is your project Javascript or Typescript: Javascript

Describe the bug

When saving a collection type created by a user (with roles Super Admin and Author) with a user with role Author, all fields are emptied. Refreshing the page shows the save was still successful.

Below are the rights of the Author role :
image
image

Steps to reproduce the behavior

  1. Log in as User 1 (roles: Super Admin and Author).
  2. Create a new entry in the "toto" collection type.
  3. Log out and log in as User 2 (role: Author).
  4. Open the entry created by User 1.
  5. Edit any field.
  6. Save the changes : all fields are emptied.

Expected behavior

The save is successful, but the fields are not emptied

Screenshots

Here is a video of a minimal reproduction :

minimal-repro_1WrcgvPt.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To review
Development

No branches or pull requests

1 participant