strapi - restrict user to fetch only data related to him
问题 Usually, a logged-in user gets all entries of a Content Type. I created a "snippets" content type (_id,name,content,users<<->>snippets) <<->> means "has and belongs to many" relation. I created some test users and make a request: curl -H 'Authorization: Bearer eyJ...' http://localhost:1337/snippets/ Main Problem: an authenticated user should only see the entries assigned to him. Instead, a logged-in user gets all snippets, which is bad. How is it possible to modify the fetchAll(ctx.query);