Menu

Is this supported

Help
2003-08-28
2003-08-28
  • Willem H. Rozendaal

    In version 214 beta I want to create the following situation:

    administrator can  see all living
    not logged in can see no living
    logged in can only see living relatives of degree 3

    Is this possble, and (if yes) what settings should I use?

    Thnx

    Wim Rozendaal

     
    • John Finlay

      John Finlay - 2003-08-28

      I'm not sure what you mean by "relatives of degree 3," but I will try to explain the general rules and you can make changes as you need to.

      Edit the privacy.php file and make the following changes:

      $USE_RELATIONSHIP_PRIVACY = true;
      $MAX_RELATION_PATH_LENGTH = 2;

      Then for each user, set the GEDCOM ID for that user to match who they are in the GEDCOM.

      The settings above will give you the following results:
      1) admins can see everything
      2) public users can see living names but not details
      3) logged in users can only see the details of living people who are withing 3 relationship links from them.  So I would be able to see my father's brother's wife (my aunt).  Or my mother's sister's son (my 1st cousin).

      Some other settings that can affect this are the $SHOW_LIVING_NAMES and $CHECK_MARRIAGE_RELATIONS parameters.

      Setting $SHOW_LIVING_NAMES = $PRIV_USER will hide the names of living people for public users, but will allow the names to be seen by logged in users.  Setting $SHOW_LIVING_NAMES = $PRIV_NONE will only let the admin user see the names of living people they are not related to.  So if I were logged in, under the $PRIV_USER setting I would be able to see all the living names, but under the $PRIV_NONE setting I would only be able to see the names of people I was related to.

      Setting $CHECK_MARRIAGE_RELATIONS = false will not check for links in spouses.  So in the example above with the default setting of true, I was able to see my father's brother's wife (great aunt).  But with a setting of false, I would be able to see my father's brother's son (1st cousin), but not my father's brother's wife (aunt).  Unless I increase the path length to 4 by setting MAX_RELATION_PATH_LENGTH = 3, in which case I would be able to see my aunt by following the relationship path: father's brother's son's mother (aunt).

      Hopefully I explained this well. If you have any other questions then let me know.

      --John

       

Log in to post a comment.