Skip to content

Commit 570107d

Browse files
committed
Only the Secretariat can see the history for parked IPR statements. Fixes ietf-tools#1922.
- Legacy-Id: 11070
1 parent 1c509cd commit 570107d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/ipr/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ def email(request, id):
370370
def history(request, id):
371371
"""Show the history for a specific IPR disclosure"""
372372
ipr = get_object_or_404(IprDisclosureBase, id=id).get_child()
373+
374+
if not has_role(request.user, 'Secretariat'):
375+
if ipr.state.slug != 'posted':
376+
raise Http404
377+
373378
events = ipr.iprevent_set.all().order_by("-time", "-id").select_related("by")
374379
if not has_role(request.user, "Secretariat"):
375380
events = events.exclude(type='private_comment')

0 commit comments

Comments
 (0)