Im totally new in wordpress ;)
Im using the Members plugin in order to restrict some posts to specific roles, it works perfectly; However, I need to change its behavior.
By default, when a user is not allowed to access a post, members show the post title and the phrase "Sorry, but you do not have permission to view this content" both while showing the post teaser and in the full post page.
Looking the source, this is done in members_content_permissions_protect function.
My goal is to show the post teaser to everyone and restrict just the full content, but I didnt find a way to tell if wp is showing the teaser or the full post...
I've looked into the global $post variable that the function is using, but still, no reference about the teaser/full post request.
Any idea?