Strapi version 3.2.5.
I’m trying to implement a custom global policy to check if some properties in user data matches certain values inside the content that is being PUT and reject the request, if there is no match.
While I am able to retreive user via “ctx.state.user”, the “ctx.request.body” instead of returning the values that user has submitted to API endpoint, returns an array of all entries of one particular Collection Type.
Is there a way how retreive the actual request body inside the global policy?