RBAC Custom Condition for Many to many relations

System Information
  • Strapi Version: 4.12.6
  • Operating System: Linux
  • Database: Postgres
  • Node Version: 16.15.1
  • NPM Version: 9.3.0
  • Yarn Version: 1.22

Hay everyone,
have you ever create custom condition in RBAC, while has many to many relation, i try to use $elemMatch to fetch the data, its already retrieve correct data but has an error when sanitize the result, is there any insight or clues where i have wrong step or missing something?


image