Skip to content

Commit bf3074e

Browse files
committed
Changed an attribute guard to work with a reverse relationship attribute (using hasattr()).
- Legacy-Id: 15251
1 parent 159b5da commit bf3074e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/ietfauth/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def login(request, extra_context=None):
587587
#
588588
require_consent = []
589589
if user:
590-
if user.person and not user.person.consent:
590+
if hasattr(user, 'person') and not user.person.consent:
591591
person = user.person
592592
if person.name != person.name_from_draft:
593593
require_consent.append("full name")

0 commit comments

Comments
 (0)