From 3e0116b596bc0572d8fd4c9f6ecb642db182cadc Mon Sep 17 00:00:00 2001 From: Dave Dash Date: Mon, 26 Apr 2010 16:37:30 -0700 Subject: [PATCH] We need to check has_author using request.amo_user not request.user --- apps/tags/templates/tags/tag_list.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/tags/templates/tags/tag_list.html b/apps/tags/templates/tags/tag_list.html index 1c0dc501d2..2fe3316005 100644 --- a/apps/tags/templates/tags/tag_list.html +++ b/apps/tags/templates/tags/tag_list.html @@ -3,8 +3,10 @@ {{ tag.tag_text }} - {% if is_tag_admin or tag.addon_tags.user == request.user or - addon and addon.has_author(request.user) %} + {% if is_tag_admin + or request.user.is_authenticated() + and (tag.addon_tags.user == request.amo_user + or (addon and addon.has_author(request.amo_user))) %} {% endif %}