The condition which does the check just checks to see is the profile page showing, never mind who's it is.
So, that condition needs to take into account that the profile page may be showing, but that it is not showing the current user's profile, so therefore, the click should be allowed, and the current user's profile should show.
The condition which does the check just checks to see is the profile page showing, never mind who's it is.
So, that condition needs to take into account that the profile page may be showing, but that it is not showing the current user's profile, so therefore, the click should be allowed, and the current user's profile should show.