Showing Unpublished Posts to Logged-out Users?

Answered my own question on this one. As it turns out, it was pretty simple in WordPress 2.9.2. Basically, I applied a filter to ‘the_posts’ which would run another query if the object was empty. Because we’re looking up posts that haven’t been published, we need to use our own custom SQL as well. Trying to use the WP_Query object will, well, put you in an endless recursive loop.

error code: 523