So there is a collection type ‘orders’ which is having many to one relation with products,
and i have 2 admin user roles, team 1 and team 2.
In the collection ‘orders’ there is a field called as status which is Enum field, having pending and accepted values.
now i need to show all orders for team 1 but, for team 2 i need to show the orders which are in status:accepted.
to achieve this, i created a typescript file inside extensions//strapi-server.ts
and overrided the find method with logics to handle the filter conditions