Unpublished Post should not be accessible

fixes #1162
Merge pull request #1164 from halfdan/1162-unpublished-posts

Unpublished Post should not be accessible