projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529792d
)
CRM-15805 - Add missing permission declaration for option group/value apis
author
Coleman Watts
<coleman@civicrm.org>
Sat, 10 Jan 2015 00:55:55 +0000
(19:55 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Sat, 10 Jan 2015 00:55:55 +0000
(19:55 -0500)
CRM/Core/DAO/permissions.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO/permissions.php
b/CRM/Core/DAO/permissions.php
index 7c304efac139a73aba46f65ed1c14e6d445d391a..c40ec08e01d39f9cde155e4d515105c7b00ebc97 100644
(file)
--- 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']))) {