RBAC Handler Error

System Information
  • Strapi Version: 4.11.4
  • Operating System: Mac
  • Database: sqlite
  • Node Version: >=14.19.1 <=18.x.x
  • NPM Version: >=6.0.0
  • Yarn Version: >=1.0.0

Hi i need help
in my boostrap i have this code:

 async bootstrap({ strapi }) {
    await strapi.admin.services.permission.conditionProvider.register({
      displayName: 'Custom RBAC',
      name: 'custom-rbac',

      handler: async (user) => {

        const entries = await strapi.entityService.findMany('api::producto.country', {
          where: {
            titulo: "Spain",
          },
          populate: ['createdBy', 'updatedBy'],
        });

        return entries;
      },
    });
  }

and result is error: Undefined attribute level operator id
Error: Undefined attribute level operator id

i don’t know why

the code above makes 0 sense please look at the docs

I need this :
We have an entity with a country variable. A product that is sold in certain countries. How can we make it so that a user can only edit those entities from a specific country?

there is a hidden locale field I would have to check what it is called