Skip to content

Commit fec5772

Browse files
committed
Deprecation fix: Pass the result of active_review_teams() to a Role.objects query, instead of passing the function.
- Legacy-Id: 12534
1 parent 17a7f59 commit fec5772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/review/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def can_request_review_of_doc(user, doc):
3232
return False
3333

3434
return (is_authorized_in_doc_stream(user, doc)
35-
or Role.objects.filter(person__user=user, name="secr", group__in=active_review_teams).exists())
35+
or Role.objects.filter(person__user=user, name="secr", group__in=active_review_teams()).exists())
3636

3737
def can_manage_review_requests_for_team(user, team, allow_personnel_outside_team=True):
3838
if not user.is_authenticated():

0 commit comments

Comments
 (0)