Skip to content

Permissions are not syncronized when collection is renamed #6837

@jblevins1991

Description

@jblevins1991

Describe the bug

When renaming a collection, the permission is not renamed. Because this is happening, the endpoint for that collection is also not updated to reflect changes to the collection. In my example I created a collection named 'Blogs' but later renamed it 'Post'. Below are URLs for the collection.

Steps to reproduce the behavior

  1. Go to my old collection name
  2. Observe that an empty collection with a status code of 200 is provided
  3. Go to my new collection name
  4. Observe that a 404 status code is provided

Expected behavior
I expect that the permissions and endpoints be renamed to reflect the changes to the collection.

System

  • Node.js version:
  • NPM version: N/A
  • Strapi version: N/A
  • Database: Postgres
  • Operating system: Ubuntu

Additional context
I installed strapi using the 1 click install on digital ocean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions