]> git.parisson.com Git - teleforma.git/commitdiff
fix user
authoryomguy <yomguy@parisson.com>
Fri, 20 Apr 2012 12:48:04 +0000 (14:48 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 20 Apr 2012 12:48:04 +0000 (14:48 +0200)
teleforma/templates/telemeta/profile_detail.html

index 77366b0f417596822a7edb0fc402760e10ded3f8..f809d335eb78d84f9664ddc58af9201a87132615 100644 (file)
@@ -88,7 +88,7 @@
 
   </div>
 
-{% if user.is_staff %}
+{% if user.username != usr.username and user.is_staff %}
 <a href="{% url teleforma-user-login usr.id %}" class="component_icon button icon_login">{% trans "Login as" %}</a>
 {% endif %}