Fix request.user==None error

If one isn't logged in and views the profile of a user
without media, one gets a problem, because request.user is
None and has no _id attribute.

Fix this.
This commit is contained in:
Elrond 2012-01-13 23:38:21 +01:00
parent fafec72740
commit 762d4a0c48

View File

@ -145,7 +145,7 @@
{% include "mediagoblin/utils/feed_link.html" %}
</div>
{% else %}
{% if request.user._id == user._id %}
{% if request.user and (request.user._id == user._id) %}
<div class="profile_showcase empty_space">
<p>
{% trans -%}