Skip to content

Commit 3a47fd7

Browse files
committed
Don't blow up when checking if the logged-in user is a document author, if the user don't have a person record.
- Legacy-Id: 14221
1 parent 7bf04ab commit 3a47fd7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/ietfauth/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ def is_individual_draft_author(user, doc):
152152
if not doc.group.type_id == "individ" :
153153
return False
154154

155+
if not hasattr(user, 'person'):
156+
return False
157+
155158
if user.person in doc.authors():
156159
return True
157160

0 commit comments

Comments
 (0)