#2791 Bug in Relationship Privacy


The individuals relationship privacy setting no longer works. This bug probably appeared when the user tables were split. The file privacy.php still attempts to extract the individuals relationship setting from the database using PGV_USER_NAME. I think it now needs to use PGV_USER_ID.
The relevant section starts about line 350.


  • Julio Sánchez Fernández

    Can you be a little bit more specific? The effect of what setting is not working and how is it not working? Is it granting too much or too little access? It seems to be working for me (I use $USE_RELATIONSHIP_PRIVACY = true if that's what you mean). Besides, privacy.php does not have a line 350 in my version. What version or SVN revision are you using?

  • David Richmond

    David Richmond - 2010-03-25

    Sorry. The file is actually functions_privacy.php and it concerns the USER setting not the GLOBAL one. The code tries to fetch a setting from the database that no longer exists:

    get_user_setting($username, 'relationship_privacy')

    I was using SVN at the time. But then my memory aint what it used to be!

  • Julio Sánchez Fernández

    It looks like you're right, there are three suspect calls to get_user_setting that should use $pgv_USER_ID instead of $username.


Log in to post a comment.