CRM-18409 fix inability to view activity if source contact id is deleted.
authoreileen <emcnaughton@wikimedia.org>
Tue, 19 Apr 2016 02:46:33 +0000 (14:46 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 18 May 2016 00:41:40 +0000 (12:41 +1200)
commitbbd2743ba1f1097fbd47d94a377b61befd1ac43f
tree0f95283662b69acc82ee361a03f71f8b7506bbbc
parentdcfd8d522ab67d9715d7191cf72148dcce70d42a
CRM-18409 fix inability to view activity if source contact id is deleted.

This fix adds the ability to access activities through the api with the same permission checks as in the BAO if 'id' is passed in (and contact_id is not for 'supporting legacy stuff reasons').

Note that the api functionality is a good thing, but it is actually being added primarily for the purposes of being able to add a test fix for the change
CRM/Activity/BAO/Activity.php
CRM/Core/DAO/permissions.php
api/v3/Activity.php
tests/phpunit/api/v3/ACLPermissionTest.php