зеркало из https://github.com/mozilla/FlightDeck.git
check request.user in prepare_zip
before, it was just user, which didn't exist, and so it errored a lot.
This commit is contained in:
Родитель
b662c9fa6c
Коммит
3701480d75
|
@ -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')
|
||||
|
|
Загрузка…
Ссылка в новой задаче