This is a query I wrote to list out content that the current logged-in user has a user-capability to view. This is used in conjunction with JigoShop's Groups/Subscription Plugins