Fix failure to recognize CamelCase entity names CRM-11817
[civicrm-core.git] / CRM / Core / DAO / permissions.php
index 3b246e6d21411cb53974521b87787a25746bd619..53b1205733de395612da3b703ea5e9aa2df15fc0 100644 (file)
@@ -37,7 +37,7 @@
  * @return array of permissions to check for this entity-action combo
  */
 function _civicrm_api3_permissions($entity, $action, &$params) {
-  $entity = strtolower($entity);
+  $entity = _civicrm_api_get_entity_name_from_camel($entity);
   $action = strtolower($action);
 
   /**