Fix more StrictUndefined issues
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 5 Jan 2012 13:46:27 +0000 (14:46 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 5 Jan 2012 13:46:27 +0000 (14:46 +0100)
mediagoblin/templates/mediagoblin/user_pages/user.html

index c93db8b0a6230758b7ca063737e2a9ec4361245a..6b5c2b210314079dd367d5a990830e4f23c236fc 100644 (file)
@@ -90,7 +90,7 @@
     </h1>
 
     {% if not user.url and not user.bio %}
-      {% if request.user._id == user._id %}
+      {% if request.user and (request.user._id == user._id) %}
         <div class="grid_6 alpha empty_space">
           <p>
             {% trans %}Here's a spot to tell others about yourself.{% endtrans %}
             {%- trans %}Edit profile{% endtrans -%}
           </a>
         {% endif %}
-        {% if request.user._id == user._id %}
+        {% if request.user and (request.user._id == user._id) %}
           <a href="{{ request.urlgen('mediagoblin.edit.account') }}">
             {%- trans %}Change account settings{% endtrans -%}
           </a>