CRM-16490 make permissioned relationship ajax call work for other permissioned relati...
[civicrm-core.git] / CRM / Core / Page / AJAX / Location.php
index 1ef5d394db6c9ed821772bfba60d162087ab8ac1..c5a4bda3419ae8fc23517e14916d8f974f998ff0 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Core_Page_AJAX_Location {
     }
 
     // Verify user permission on related contact
-    $employers = CRM_Contact_BAO_Relationship::getPermissionedEmployer($user);
+    $employers = CRM_Contact_BAO_Relationship::getPermissionedContacts($user);
     if (!isset($employers[$cid])) {
       CRM_Utils_System::civiExit();
     }