$config = CRM_Core_Config::singleton();
$urlPath = explode('/', $_GET[$config->userFrameworkURLVar]);
$permissions = [
- ['access CiviCRM', 'access Ajax API'],
+ ['access CiviCRM', 'access AJAX API'],
];
if (!empty($urlPath[3])) {
$entity = $urlPath[3];
* Ex 1: Must have 'access CiviCRM'
* (string) 'access CiviCRM'
*
- * Ex 2: Must have 'access CiviCRM' and 'access Ajax API'
- * ['access CiviCRM', 'access Ajax API']
+ * Ex 2: Must have 'access CiviCRM' and 'access AJAX API'
+ * ['access CiviCRM', 'access AJAX API']
*
- * Ex 3: Must have 'access CiviCRM' or 'access Ajax API'
+ * Ex 3: Must have 'access CiviCRM' or 'access AJAX API'
* [
- * ['access CiviCRM', 'access Ajax API'],
+ * ['access CiviCRM', 'access AJAX API'],
* ],
*
- * Ex 4: Must have 'access CiviCRM' or 'access Ajax API' AND 'access CiviEvent'
+ * Ex 4: Must have 'access CiviCRM' or 'access AJAX API' AND 'access CiviEvent'
* [
- * ['access CiviCRM', 'access Ajax API'],
+ * ['access CiviCRM', 'access AJAX API'],
* 'access CiviEvent',
* ],
*
* Note that in permissions.php this is keyed by the action eg.
* (access Civi || access AJAX) && (access CiviEvent || access CiviContribute)
* 'myaction' => [
- * ['access CiviCRM', 'access Ajax API'],
+ * ['access CiviCRM', 'access AJAX API'],
* ['access CiviEvent', 'access CiviContribute']
* ],
*