From: Coleman Watts Date: Sat, 10 Jan 2015 00:55:55 +0000 (-0500) Subject: CRM-15805 - Add missing permission declaration for option group/value apis X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=abdff0f7bd98eb355e817afec742a312dbe1e06d;p=civicrm-core.git CRM-15805 - Add missing permission declaration for option group/value apis --- diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index 7c304efac1..c40ec08e01 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -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']))) {