chore: note odd placement of code

This commit is contained in:
Robert Sparks 2023-07-07 17:48:21 -05:00
parent d4f5bc6707
commit f0a32edec6
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318

View file

@ -50,6 +50,8 @@ def can_request_review_of_doc(user, doc):
if not user.is_authenticated:
return False
# This is in a strange place as it has nothing to do with the user
# but this utility is used in too many places to move this quickly.
if doc.type_id == 'draft' and doc.get_state_slug() != 'active':
return False