Comment #1 on issue 157 by yash888: clicking on other users avatar loads  
the 'change avatar form'
http://code.google.com/p/django-hotclub/issues/detail?id=157

Ya thats right. Its a minor bug. Just place an {% if %} loop to check if  
the logged in user is same as other_user
in the profile.

Patch.

In profile.html template

replace       <a href="{% url avatar_change %}"  
id="avatar_replace">(replace)</a>

with            {% if is_me %}
                          <a href="{% url avatar_change %}"  
id="avatar_replace">(replace)</a>
                   {% endif %}

That makes sure the logged in user only can change his avatar.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to