Skip to content

Commit 730e64d

Browse files
author
Sasha Romijn
committed
Refs ietf-tools#2217 - Small cleanup from changeset [16924]
Commit ready for merge. - Legacy-Id: 16927 Note: SVN reference [16924] has been migrated to Git commit 871a4b6
1 parent 871a4b6 commit 730e64d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/doc/views_review.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,15 +461,14 @@ def __init__(self, user, *args, **kwargs):
461461
self.fields['team'].queryset = self.fields['team'].queryset.filter(role__person__user=user, role__name='secr')
462462

463463

464+
@login_required()
464465
def submit_unsolicited_review_choose_team(request, name):
465466
"""
466467
If a user is submitting an unsolicited review, and is allowed to do this for more
467468
than one team, they are routed through this small view to pick a team.
468469
This is needed as the complete review form needs to be specific for a team.
470+
This view only produces a redirect, so it's open for any user.
469471
"""
470-
if not request.user.is_authenticated:
471-
# This view only produces a redirect, so it's open for any user
472-
return HttpResponseForbidden("You do not have permission to perform this action")
473472
doc = get_object_or_404(Document, name=name)
474473
if request.method == "POST":
475474
form = SubmitUnsolicitedReviewTeamChoiceForm(request.user, request.POST)

0 commit comments

Comments
 (0)