notum-cz / strapi-plugin-content-versioning

This plugin enables content versioning in Strapi
129 stars 46 forks source link

Editors cannot create item for versioned type #7

Closed JesperWe closed 2 years ago

JesperWe commented 2 years ago

Bug report

Describe the bug

  1. When logged in as Super Admin I activate versioning for a Content Type.
  2. I can then go to Content Manager and create new items of that Content Type without issues.
  3. The system has users with the standard Editor role, which has been granted full CRUD access to the Content Type.
  4. If I log in as such an editor user, I am not able to create new items, I get a 403 error on the API save request and a

Warning: Policy Failed.

If I as Super Admin disable versioning on the Content Type and reload the Editor users browser, the editor can again create new items.

System

JesperWe commented 2 years ago

So after some investigation this seems to be correct behaviour. The plugin introduces a permission plugin::content-versioning.save that needs to be enabled for the editor role. So closing this bug and adding this to readme.