Privacy not recognised
Brought to you by:
canajun2eh,
yalnifj
While traversing through a tree, privacy appears to be respected except if you click on the "Closer Relatives" tab, then everything is viewable irrespective of RESN tags and admin Privacy settings. also you get this error
Fatal error: Call to a member function isOK() on a non-object in xx\xx\xx\phpgedview\includes\controllers\individual_ctrl.php on line 1118
Something needs fixing!
NB: I had a Family to have Restriction=Confidential and the Wife having a Restriction=Confidential and i was viewing the husband when i got this message
Cheers
James
James, is there a URL you can give us to see this happening? Its not an issue that has come before, and I can't find a way to replicate it. Is this on PGV ver 4.1.6?
I don't have my site live yet, still in deve stage on localhost. But I can give you this to play with
0 HEAD
1 GEDC
2 VERS 5.5
2 FORM LINEAGE-LINKED
1 CHAR UTF-8
0 @I1@ INDI
1 NAME The Husband who is fully viewable
1 SEX M
1 FAMS @F1@
0 @I2@ INDI
1 RESN confidential
1 NAME The Wife who should be Private and not seen
1 SEX F
1 FAMS @F1@
0 @F1@ FAM
1 RESN confidential
1 HUSB @I1@
1 WIFE @I2@
0 TRLR
Install that as a test GEDCOM. Set the General Privacy Settings to "Use GEDCOM (RESN) Privacy Restriction" = Yes.
Then log in as another user that has non admin rights and get them to check these two individuals out.
When you select I1 and view the "Personal Facts and Details" all looks OK. Privacy is maintained, But when you go to the "Close Relatives" tab, that's when the error occurs, not only that but you can see everything you shouldn't see.
Hope that helps
Yes its Ver 4.1.6...
PHP 5.2.8
Apache 2.2.11
MySQL 5.1.30
Thanks James. Yes, I can now see the problem. It really helps. I'll see if I can find the problem, but hopefully Greg or Gerry will be able to see it quicker.
James, I've had a look, and will have to admit this one is beyond my knowledge. Hopefully someone else can help.
One thing though, although I can see the privacy problem, when using that short GEDCOM you supplied I don't get that error:
<<Fatal error: Call to a member function isOK() on a non-object in
xx\xx\xx\phpgedview\includes\controllers\individual_ctrl.php on line 1118>>
So that might be coincidental, and not directly related.
Line 1118 of individual_ctrl.php is part of a check for a valid date of marriage for the couple. Is there possibly an error, or unusual format on the marriage date on your original GEDCOM data for this couple?
Interesting... I tried that mini GED to see if it would replicate the fault on mine before I sent you the code... Maybe it's my version of PHP or MySQL, ar your similar..
I am using XAMPP 1.7.0 as my deve platform on one machine and am using extensive dns, proxy and httpd-vhosts.conf mods to replicate the real deal by viewing from another machine (although these should not affect php errors, as it's been working wonderfully for two weeks now).
I am also viewing from FireFox 3.0.5 (portable)
Any of these factors could cause it be a different environment, thus different errors
Is this still a problem in version 4.2.2?
Version 4.2.2 was released today (1 August 2009)