From abdff0f7bd98eb355e817afec742a312dbe1e06d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 9 Jan 2015 19:55:55 -0500 Subject: [PATCH] CRM-15805 - Add missing permission declaration for option group/value apis --- CRM/Core/DAO/permissions.php | 2 ++ 1 file changed, 2 insertions(+) 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']))) { -- 2.25.1