Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

check request.user in prepare_zip #167

Merged
merged 1 commit into from

2 participants

@seanmonstar
Owner

before, it was just user, which didn't exist, and so it errored a lot.

r? @zalun

@seanmonstar seanmonstar check request.user in prepare_zip
before, it was just user, which didn't exist, and so it errored a lot.
3701480
@zalun zalun merged commit d1d6066 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 24, 2012
  1. @seanmonstar

    check request.user in prepare_zip

    seanmonstar authored
    before, it was just user, which didn't exist, and so it errored a lot.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  apps/jetpack/views.py
View
2  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')
Something went wrong with that request. Please try again.