Get Posts IDs user can/cannot access

Hi,

Is there a function to return a list of post id’s that the current user can (or cannot) access?

Why? I’m using SearchWP and for some reason s2Member is preventing any posts being returned for users who are not logged in. If I turn off search results in s2Members Alternative View Protection, then posts I don’t want are returned.

Thanks for any/all help