Fix a bug in second degree permssions where the a_b, b_a combination was mishandled
authorAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 4 Jul 2018 11:04:10 +0000 (12:04 +0100)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Wed, 4 Jul 2018 11:34:10 +0000 (12:34 +0100)
commit2f5aa3cd8b954593f9f3e40e63ad2916f1ac769f
tree558af50090537e64b74c557a3a4b3cab322ed943
parent66229fd56f5a91924067a44e0432ccef312023d4
Fix a bug in second degree permssions where the a_b, b_a combination was mishandled

We need to check for:
  first_degree_relationship.contact_id_a = second_degree_relationship.contact_id_a
  first_degree_relationship.contact_id_a = second_degree_relationship.contact_id_b
  first_degree_relationship.contact_id_b = second_degree_relationship.contact_id_a
  first_degree_relationship.contact_id_b = second_degree_relationship.contact_id_b
but the last one was mishandled.
CRM/Contact/BAO/Contact/Permission.php