Skip to content

Commit 0c0a912

Browse files
committed
Remove obsolete tests.py file
- Legacy-Id: 5292
1 parent b881c64 commit 0c0a912

2 files changed

Lines changed: 6 additions & 371 deletions

File tree

ietf/idrfc/tests.py

Lines changed: 0 additions & 369 deletions
This file was deleted.

ietf/idrfc/views_doc.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ def document_main(request, name, rev=None):
275275
actions = []
276276

277277
if ((not doc.stream_id or doc.stream_id in ("ietf", "irtf")) and group.type_id == "individ" and
278-
(Role.objects.filter(person__user=request.user, name__in=("chair", "delegate"), group__type__in=("wg",), group__state="active")
278+
(request.user.is_authenticated() and
279+
Role.objects.filter(person__user=request.user, name__in=("chair", "delegate"),
280+
group__type__in=("wg",),
281+
group__state="active")
279282
or has_role(request.user, "Secretariat"))):
280283
actions.append(("Adopt in Group", urlreverse('edit_adopt', kwargs=dict(name=doc.name))))
281284

@@ -285,7 +288,8 @@ def document_main(request, name, rev=None):
285288
if doc.get_state_slug() == "expired" and has_role(request.user, ("Secretariat",)):
286289
actions.append(("Resurrect", urlreverse('doc_resurrect', kwargs=dict(name=doc.name))))
287290

288-
if doc.get_state_slug() != "expired" and doc.stream_id in ("ise", "irtf") and has_role(request.user, ("Secretariat",)) and not conflict_reviews:
291+
if (doc.get_state_slug() != "expired" and doc.stream_id in ("ise", "irtf")
292+
and has_role(request.user, ("Secretariat",)) and not conflict_reviews):
289293
label = "Begin IETF Conflict Review"
290294
if not doc.intended_std_level:
291295
label += " (note that intended status is not set)"

0 commit comments

Comments
 (0)