diff --git a/kuma/dashboards/templates/dashboards/includes/revision_dashboard_body.html b/kuma/dashboards/templates/dashboards/includes/revision_dashboard_body.html index 11a611c6081..4f11fe9fa3b 100644 --- a/kuma/dashboards/templates/dashboards/includes/revision_dashboard_body.html +++ b/kuma/dashboards/templates/dashboards/includes/revision_dashboard_body.html @@ -50,7 +50,7 @@
{{ _('Ban IP from Editing') }} {% endif %} - {% if request.user.is_superuser and revision.creator.profile.is_banned %} + {% if request.user.is_superuser and revision.creator.profile and revision.creator.profile.is_banned %} {% set active_ban = revision.creator.profile.active_ban() %}
banned {{ datetimeformat(active_ban.date, format='date') }}