From 3701480d7549417c6ab04e2f4f837378d1ec900d Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 24 Sep 2012 15:08:19 -0700 Subject: [PATCH] check request.user in prepare_zip before, it was just user, which didn't exist, and so it errored a lot. --- apps/jetpack/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jetpack/views.py b/apps/jetpack/views.py index 585f6388..69934bce 100644 --- a/apps/jetpack/views.py +++ b/apps/jetpack/views.py @@ -1242,7 +1242,7 @@ def prepare_zip(request, revision_id): it works. It will be downloaded in %``get_zip`` """ revision = get_object_with_related_or_404(PackageRevision, pk=revision_id) - if (not revision.package.active and user != revision.package.author): + if (not revision.package.active and request.user != revision.package.author): # pretend package doesn't exist as it's private raise Http404() hashtag = request.POST.get('hashtag')