Skip to content

Commit 0f12d47

Browse files
committed
Merged in [16927] from sasha@dashcare.nl:
Refs ietf-tools#2217 - Small cleanup from changeset [16924] - Legacy-Id: 16947 Note: SVN reference [16924] has been migrated to Git commit 871a4b6 Note: SVN reference [16927] has been migrated to Git commit 730e64d
2 parents 5065dc8 + 730e64d commit 0f12d47

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
@@ -464,15 +464,14 @@ def __init__(self, user, *args, **kwargs):
464464
self.fields['team'].queryset = self.fields['team'].queryset.filter(role__person__user=user, role__name='secr')
465465

466466

467+
@login_required()
467468
def submit_unsolicited_review_choose_team(request, name):
468469
"""
469470
If a user is submitting an unsolicited review, and is allowed to do this for more
470471
than one team, they are routed through this small view to pick a team.
471472
This is needed as the complete review form needs to be specific for a team.
473+
This view only produces a redirect, so it's open for any user.
472474
"""
473-
if not request.user.is_authenticated:
474-
# This view only produces a redirect, so it's open for any user
475-
return HttpResponseForbidden("You do not have permission to perform this action")
476475
doc = get_object_or_404(Document, name=name)
477476
if request.method == "POST":
478477
form = SubmitUnsolicitedReviewTeamChoiceForm(request.user, request.POST)

0 commit comments

Comments
 (0)