robogals / myrobogals

myRobogals is the global intranet and record-keeping tool for Robogals. It has been built to simplify many of our day-to-day tasks including organising school visits, maintaining a member database, communicating with members, storing records reliably for future generations and easily collecting statistics on a global scale.
https://my.robogals.org
10 stars 21 forks source link

Viewing profile of another user greets you as that user. #128

Closed Leggy closed 6 years ago

Leggy commented 6 years ago

Below is an example of viewing another user's profile, and the welcome message showing their name.

Example of the error

Confirming I am logged in as me (lhealey):

Normal

Leggy commented 6 years ago

Solution was to change user to user_profile in myrobogals/rgprofile/views/profile_user.py:detail and rgtemplates/profile_view.html, as user is referenced by rgtemplates/includes/left.html for the Welcome message.