APIv4 - Proper ACLs for relationship entity
authorcolemanw <coleman@civicrm.org>
Mon, 28 Aug 2023 02:09:19 +0000 (22:09 -0400)
committercolemanw <coleman@civicrm.org>
Mon, 28 Aug 2023 02:09:19 +0000 (22:09 -0400)
commit06124e3e18f34e251da9676f1e20ab5ddebba5dc
tree9bbdda7381a1eef1c2514e5653778344b3351935
parent44fa0ef0c8f7539ebe7d3d0b8bc8c733eb165f4f
APIv4 - Proper ACLs for relationship entity

Before: APIv3 and v4 require 'edit all contacts' to create/update/delete relationships
After: APIv3 unchanged, but v4 uses ACLs instead so the permission is no longer needed.
CRM/Contact/BAO/Relationship.php
Civi/Api4/Relationship.php
Civi/Test/ACLPermissionTrait.php
tests/phpunit/CRM/Activity/BAO/ActivityTest.php
tests/phpunit/CRM/Group/Page/AjaxTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v4/Entity/RelationshipTest.php