Commit 34895d2e authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

Force the check of existence of a package in ChooseSubscriptionEmailView

This avoids non-desired behaviours and potential garbage in the
parent fea6a2a9
......@@ -311,6 +311,9 @@ class ChooseSubscriptionEmailView(LoginRequiredMixin, View):
if 'package' not in request.GET:
raise Http404
if not get_web_package(request.GET['package']):
raise Http404
return render(request, self.template_name, {
'package': request.GET['package'],
'emails': request.user.emails.all(),
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment