Activity - More accurate calculation of permittedActivityTypes
authorcolemanw <coleman@civicrm.org>
Sun, 17 Sep 2023 18:56:17 +0000 (14:56 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 20 Sep 2023 11:30:24 +0000 (07:30 -0400)
commitb63505e7d35fdd6e3867c51727576b437769d95f
tree5c0538e9fc91547f4e52802b1146c2ee6a8a91c5
parent49974a7f7a8541fe4f1023824d49d18170b50c6e
Activity - More accurate calculation of permittedActivityTypes

The strict array key comparison seemed wrong, array_diff_key works better.
I was hoping this would be more efficient by skipping the where clause for
privledge users, but it doesn't. Oh well at least this is more correct.
CRM/Activity/BAO/Activity.php
tests/phpunit/CRM/Contact/SelectorTest.php