I've a Wordpress blog to share content with some people only. Users has to login to access this website.
I created new roles and new capabilities on this blog.
I've got some articles which belongs to a certain category that I would like to share only with people with a certain role.
Is there a hook I could use when somebody request an article, and where I could test if the curent user has the good capabilities, and so modify the request if needed?