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:
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!
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 theuser
andviewedUser
arguments. The information about the viewed profile is inviewedUser
. Ifuser
andviewedUser
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: 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!