Did some research, but I was unable to implement it after all.
I have a custom post type accessible only by a new role. I want to filter the post type listing so that each user should see only his records (as Author users can see their posts only). I've tried to filter parse_query but it works for the main listing only (still I can see other records).
Which is the correct filter to use in order to prevent malicious users to list others' records?
Tried with pre_get_posts as well, but still I can see other users' posts.
Which is the correct filter to use for general separation of post objects per user?