fix: suppress profile link if user not linked to a Person (#4214)

This commit is contained in:
Jennifer Richards 2022-07-15 15:42:51 -03:00 committed by GitHub
parent 067ae17b4e
commit 470adb97a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,12 +45,14 @@
Account info
</a>
</li>
<li>
<a class="dropdown-item {% if flavor != 'top' %} text-wrap link-primary{% endif %}"
href="{% url 'ietf.person.views.profile' email_or_name=user.person.name %}">
Public profile page
</a>
</li>
{% if user and user.person %}
<li>
<a class="dropdown-item {% if flavor != 'top' %} text-wrap link-primary{% endif %}"
href="{% url 'ietf.person.views.profile' email_or_name=user.person.name %}">
Public profile page
</a>
</li>
{% endif %}
<li>
<a class="dropdown-item {% if flavor != 'top' %} text-wrap link-primary{% endif %}"
href="{% url 'ietf.cookies.views.preferences' %}"