Bug: Not verifying that post/page is published during hasAccess() check.
More debug output
Whitespace clean-up