From fbde311f4352dbf11264a0f652d608001b3a6c3b Mon Sep 17 00:00:00 2001 From: Robert Sparks <rjsparks@nostrum.com> Date: Sat, 15 Jul 2017 12:24:02 +0000 Subject: [PATCH] Allow editing of title for agendas, minutes, and bluesheets documents. Fixes #2317. Commit ready for merge. - Legacy-Id: 13899 --- ietf/doc/views_material.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ietf/doc/views_material.py b/ietf/doc/views_material.py index b2922ca29..0dae3d4ec 100644 --- a/ietf/doc/views_material.py +++ b/ietf/doc/views_material.py @@ -90,14 +90,13 @@ def edit_material(request, name=None, acronym=None, action=None, doc_type=None): doc = None document_type = get_object_or_404(DocTypeName, slug=doc_type) - if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types): - raise Http404 else: doc = get_object_or_404(Document, name=name) group = doc.group document_type = doc.type - if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types): - raise Http404 + + if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types) and document_type.slug not in ['minutes','agenda','bluesheets',]: + raise Http404 if not can_manage_materials(request.user, group):