CRM-17645 - Declare permissions for CaseType api
authorColeman Watts <coleman@civicrm.org>
Thu, 21 Jan 2016 20:26:59 +0000 (15:26 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 21 Jan 2016 20:26:59 +0000 (15:26 -0500)
CRM/Core/DAO/permissions.php

index 11af708f3a75435ac56ebe3d4f177792621c9305..3c81f7d83bbfe2954cd6578eb921c5e14e013e6b 100644 (file)
@@ -183,6 +183,11 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
   );
   $permissions['case_contact'] = $permissions['case'];
 
+  $permissions['case_type'] = array(
+    'default' => array('administer CiviCase'),
+    'get' => array('access my cases and activities'),
+  );
+
   // Campaign permissions
   $permissions['campaign'] = array(
     'get' => array('access CiviCRM'),