SearchKit - Fix viewing search display for anonymous user
authorColeman Watts <coleman@civicrm.org>
Fri, 5 Aug 2022 13:55:03 +0000 (09:55 -0400)
committerTim Otten <totten@civicrm.org>
Mon, 8 Aug 2022 21:21:19 +0000 (14:21 -0700)
commit7f3fa1c3162bb6b18a62c124f1235772ebb693f1
tree9b304bef5561671dc99638d336cbb347aef8c618
parent0fa05f712d83ee89a627e62afc1f181d1f9a7b96
SearchKit - Fix viewing search display for anonymous user

This regressed in aa5d068b84f7ccd6370dd94339ecdc82c052a2c1 when the single SearchDisplay::run api call
was replacd with an array of calls. The hack in alterApiRoutePermissions can't handle multiple calls.
This updates it so that it can handle an array of calls - it will call the hook for each one and
reject the request if any of them lack permission.
CRM/Api4/Permission.php