Hide plugin content-type in content-manager without lose permissions to

System Information
  • Strapi Version: 4.24.2
  • Operating System: Mac
  • Database: SQLite
  • Node Version: 18.19.0
  • NPM Version: 10.2.3
  • Yarn Version: 1.22.22

Hi there,

I have a plugin with a content type landings-person. The goal is hide this content type from the content manager sidebar. To do this, I did the following:

  "pluginOptions": {
    "content-manager": {
      "visible": false
    }
  },

The problem is that now I can not access to /admin/content-manager/collection-types/plugin::landings.landings-person/create to create the type. (In the plugin I have a page with a button to link that goes to the content manager creation page).

I think that this happens because when visible is false I lose this permission:

    {
      action: "plugin::content-manager.explorer.create",
      subject: "plugin::landings.landings-person"
    }

This permission is managed by: strapi/packages/core/admin/admin/src/content-manager/hooks/useSyncRbac.ts at develop · strapi/strapi · GitHub

In summary, I want to hide the element from the sidebar without lose the permission to create the resource from the content manager plugin.

Any idea?

Thx.