fix capitalization to allow proper access to 'access AJAX API' perm.
authorJamie McClelland <jm@mayfirst.org>
Sat, 1 May 2021 16:08:03 +0000 (12:08 -0400)
committerJamie McClelland <jm@mayfirst.org>
Sat, 1 May 2021 16:08:03 +0000 (12:08 -0400)
commitb6e769acfa2bd5947b00e609df9853fcad4c339c
tree0ba8d7f40309a1e43563d6fa5cf0a378fe111a15
parent191855180797f275646504324de2f3f9dfb64741
fix capitalization to allow proper access to 'access AJAX API' perm.

Maybe this is platform dependent? On my dev instance the access AJAX API
permission to the path /civicrm/ajax/api4/X/X is always denied for anon
users because anon users are granted "access AJAX API" yet the check is
done against "access Ajax API".

This only really matters in CRM/Api4/Permission.php but to avoid any
confusion I'm changing it everywhere the string appears.
CRM/Api4/Permission.php
CRM/Core/Permission.php