From 9973c0580fa1b9ce3a75b37d06c645b3f9829fb8 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 4 Jul 2011 08:47:02 -0500 Subject: [PATCH] Check user['_id'] instead of username, which is slightly more guaranteed --- mediagoblin/templates/mediagoblin/user_pages/user.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index 96b6b9d1..ba61e52f 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -27,9 +27,9 @@ {% block mediagoblin_content -%} {% if user %}

{{ user.username }}'s profile

- {% if request.user.username == user.username or request.user['is_admin'] %} + {% if request.user['_id'] == user['_id'] or request.user['is_admin'] %} Edit + user.username }}">Edit profile {% endif %} {% include "mediagoblin/utils/profile.html" %} -- 2.25.1