I’ve upgraded from version 4.7.1 to 4.8.2 and it has broken one of the plugins I’m currently using.
The plugin in question is the content-versioning plugin. The plugin modifies the /content-manager/collection-types/:model
route to add a filter for the isVisibileInListView
field that the plugin adds to content-types. Source
This was previously working, but after upgrading to v4.8.2 it no longer does. I’ve been able to narrow the issue down to being a permission issue. When the content-manager’s collection-types.find
controller runs, it performs a permission check, and sanitises the query to only include fields the user has access to. Source, the user is question is a super-admin.
The isVisibileInListView
field is not permitted, and thus the filter that was added is removed.
Is there anyway for me to add this field as a permitted field for filtering, or would I have to pursue a different way in which to achieve the desired functionality?
System Information
- Strapi Version: 4.8.2
- Operating System: MacOS
- Database: mysql
- Node Version: 18.14.2
- NPM Version: 9.5.0
- Yarn Version: N/A