bug#422_user_can_not_edit_own_profile_unless_admin
authorCaleb Forbes Davis V <caldavis@gmail.com>
Mon, 4 Jul 2011 04:59:11 +0000 (23:59 -0500)
committerCaleb Forbes Davis V <caldavis@gmail.com>
Mon, 4 Jul 2011 05:08:22 +0000 (00:08 -0500)
user != username.....

mediagoblin/templates/mediagoblin/user_pages/user.html

index d23daccdfc5890eb0328aa2e97e3b44492b36e40..96b6b9d1efddea3d896c8bc2a36c200eabb7cdbe 100644 (file)
@@ -27,7 +27,7 @@
 {% block mediagoblin_content -%}
   {% if user %}
     <h1>{{ user.username }}'s profile</h1>
-    {% if request.user == user.username or request.user['is_admin'] %}
+    {% if request.user.username == user.username or request.user['is_admin'] %}
        <a href="{{ request.urlgen('mediagoblin.edit.profile') }}?username={{ 
            user.username }}"> Edit</a>
     {% endif %}