Commit f5bfd7d1 authored by Aurélien Bompard's avatar Aurélien Bompard

Merge branch 'fix-150' into 'master'

Return 404 if listid doesn't match an existing list

Closes #150

See merge request !170
parents 105981e2 22ab0f2a
Pipeline #4018001 failed with stage
in 3 minutes and 43 seconds
......@@ -326,7 +326,7 @@ class ListUnsubscribeView(MailingListView):
@login_required
@list_owner_required
def list_mass_subscribe(request, list_id):
mailing_list = get_mailman_client().get_list(list_id)
mailing_list = List.objects.get_or_404(fqdn_listname=list_id)
if request.method == 'POST':
form = ListMassSubscription(request.POST)
if form.is_valid():
......@@ -402,7 +402,7 @@ def _perform_action(message_ids, action):
@login_required
@list_moderator_required
def list_moderation(request, list_id, held_id=-1):
mailing_list = get_mailman_client().get_list(list_id)
mailing_list = List.objects.get_or_404(fqdn_listname=list_id)
if request.method == 'POST':
form = MultipleChoiceForm(request.POST)
if form.is_valid():
......
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