DataMascara / cisc3140-su19-project

https://bc-app-class.herokuapp.com/login/
2 stars 5 forks source link

Username + Avatar Links are Not Showing the User Profile when Clicked #72

Open mary060196 opened 5 years ago

mary060196 commented 5 years ago

The userInfo.html has the ability to distinguish between a (1) user looking at his or her own profile, and (2) user looking at someone else's profile. The difference is in the user and viewedUser arguments. The information about the viewed profile is in viewedUser. If user and viewedUser do not have the same username (which is unique), then the template understands that someone else's profile is viewed. It should look like this: image As you see, there are no buttons since a user cannot modify someone else's profile. Thank you so much for attending this issue and for your cooperation!

xiaojun-wu commented 5 years ago

I will fix it later, thanks remind.

mary060196 commented 5 years ago

Thank you!

xiaojun-wu commented 5 years ago

I changed the function and it may works. However, I don't know how to access other's profile.