Fantomas42/django-blog-zinnia — pull request #367 by stefanw (2014-08-18 15:59:30+00:00)
Title: Add permission checking to shortlink

The [redirect of a shortlink to an unpublished post](https://github.com/Fantomas42/django-blog-zinnia/blob/develop/zinnia/views/shortlink.py#L21) will redirect and result in a 404 but also leaks the URL of the post containing date and slug.

It would be better if
1. either short urls only worked on published posts (using the `EntryPublishedManager`)
2. or the `EntryPreviewMixin` check is already performed in the shortlink view.

I implemented No. 2 in this PR.