X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e08b9a9ce539493a925abad05a1a2900aa80583e..ed5df159a03b0c3c0d17f9e7be8d925e9e73f669:/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