Skip to content

Bug with "has same role as creator" with custom roles #8129

@MickaelFondation

Description

@MickaelFondation

Hi, I created a role custom then I give two users this same role and I set Has same role as creator. When I added something with one user the other one can see something new on the list but everything inside is empty. I think this is a bug

Describe the bug
It look likes the parameter "define condition" "Has same role as creator" doesn't work properly. When it's set to a specific Collection Types (on read condition for example). The number of elements correspond but in the liste there is "-" character at the place of datas and when I click to modify every field are empty.

Steps to reproduce the behavior

  1. Having two user with the same custom role
  2. Create an entry in a collection type with one of the users
  3. As an administrator go to Permission then Roles
  4. Edit the role of the two previous user
  5. Click on parameters who is display on mouseover on the collection types who correspond of the one you created before
  6. Select "Has same role as creator" next to CAN READ WHEN
  7. Apply
  8. Go to the right collection type on the main menu
  9. The entry appear on the list but with no data (only '-' character on the list)

Expected behavior
The right behavior is to see datas on the list and when i edit the collection types entity.

Screenshots
bugstrapirole

System

Strapi self hosted 3.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: core:content-managerSource is core/content-manager packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions