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:
1450559
)
CRM-16220 - Allow non-admins to get & create tags
author
Coleman Watts
<coleman@civicrm.org>
Thu, 2 Apr 2015 15:36:31 +0000
(11:36 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 2 Apr 2015 15:41:27 +0000
(11:41 -0400)
CRM/Core/DAO/permissions.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO/permissions.php
b/CRM/Core/DAO/permissions.php
index c40ec08e01d39f9cde155e4d515105c7b00ebc97..a723c51cf8dcd7528ce0a8dbec1b6f5e171b004f 100644
(file)
--- a/
CRM/Core/DAO/permissions.php
+++ b/
CRM/Core/DAO/permissions.php
@@
-107,6
+107,14
@@
function _civicrm_api3_permissions($entity, $action, &$params) {
$permissions['entity_tag'] = $permissions['address'];
$permissions['note'] = $permissions['address'];
+ // Allow non-admins to get and create tags to support tagset widget
+ // Delete is still reserved for admins
+ $permissions['tag'] = array(
+ 'get' => array('access CiviCRM'),
+ 'create' => array('access CiviCRM'),
+ 'update' => array('access CiviCRM'),
+ );
+
//relationship permissions
$permissions['relationship'] = array(
'get' => array(