Closed armaangoel78 closed 6 years ago
BTW to edit another profiles bio you just change the id in the url to their profile's id
The easiest fix for this is to compare the profile and the user in the template
{% if request.user==profile.user %}
//Code to show edit buttons
{% endif %}
PS that's pseudo code im not sure about the profile.user bit that probably won't work
see title. This is a big problem and it brings into question other security flaws. We need to spend some quality time making sure that there are no holes in our system.