X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e08b9a9ce539493a925abad05a1a2900aa80583e..a9d6b8ff42fe6dae988f8157d1b814e2169ce941:/apps/catalogue/views.py diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 22aeffe8..b30297cd 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -587,8 +587,6 @@ def publish_image(request, slug): class GalleryView(UploadView): def get_object(self, request, slug): book = get_object_or_404(Book, slug=slug) - if not book.public and not request.user.has_perm('catalogue.change_book'): - return HttpResponseForbidden() if not book.gallery: raise Http404 return book