CRM-15805 - Add missing permission declaration for option group/value apis
authorColeman Watts <coleman@civicrm.org>
Sat, 10 Jan 2015 00:55:55 +0000 (19:55 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 10 Jan 2015 00:55:55 +0000 (19:55 -0500)
CRM/Core/DAO/permissions.php

index 7c304efac139a73aba46f65ed1c14e6d445d391a..c40ec08e01d39f9cde155e4d515105c7b00ebc97 100644 (file)
@@ -392,6 +392,8 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
     ),
   );
   $permissions['uf_field'] = $permissions['uf_group'];
+  $permissions['option_value'] = $permissions['uf_group'];
+  $permissions['option_group'] = $permissions['option_value'];
 
   // Translate 'create' action to 'update' if id is set
   if ($action == 'create' && (!empty($params['id']) || !empty($params[$entity . '_id']))) {