Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
fix bug 1178492 - check creator exists before reference
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Jun 29, 2015
1 parent 6e851d1 commit db7cccf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<br/><a class="dashboard-ban-ip-link" href="{{ ban_ip_url }}" target="_blank">{{ _('Ban IP from Editing') }}</a>
</span>
{% 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() %}
<div class="banned">
banned {{ datetimeformat(active_ban.date, format='date') }}
Expand Down

0 comments on commit db7cccf

Please sign in to comment.