Skip to content

Commit fbde311

Browse files
committed
Allow editing of title for agendas, minutes, and bluesheets documents. Fixes ietf-tools#2317. Commit ready for merge.
- Legacy-Id: 13899
1 parent 617dac4 commit fbde311

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ietf/doc/views_material.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,13 @@ def edit_material(request, name=None, acronym=None, action=None, doc_type=None):
9090

9191
doc = None
9292
document_type = get_object_or_404(DocTypeName, slug=doc_type)
93-
if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types):
94-
raise Http404
9593
else:
9694
doc = get_object_or_404(Document, name=name)
9795
group = doc.group
9896
document_type = doc.type
99-
if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types):
100-
raise Http404
97+
98+
if document_type not in DocTypeName.objects.filter(slug__in=group.features.material_types) and document_type.slug not in ['minutes','agenda','bluesheets',]:
99+
raise Http404
101100

102101

103102
if not can_manage_materials(request.user, group):

0 commit comments

Comments
 (0)