APIv4 - Fix access to case activities for administrators
authorcolemanw <coleman@civicrm.org>
Tue, 14 Nov 2023 01:57:26 +0000 (20:57 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 14 Nov 2023 01:57:26 +0000 (20:57 -0500)
commit93ab798a06b9a471ce39b98265ce729bbe96a84d
treec3e8ee1883a7e4b43a4ccdf2edffee366f86c37e
parent4a7ac29969c07583ab179b81e137f6258610dd77
APIv4 - Fix access to case activities for administrators

Fixes dev/core#4769

Before: Case administrators with 'access deleted contacts' permission blocked from viewing Case activities in APIv4
After: Permissions work correctly.

The problem was the hook logic was incorrectly interpreting empty permissions to mean "no access"
when it actually means "unrestricted access".
ext/civi_case/civi_case.php
tests/phpunit/api/v4/Entity/CaseTest.php