CRM-16220 - Allow non-admins to get & create tags
authorColeman Watts <coleman@civicrm.org>
Thu, 2 Apr 2015 15:36:31 +0000 (11:36 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 2 Apr 2015 15:41:27 +0000 (11:41 -0400)
CRM/Core/DAO/permissions.php

index c40ec08e01d39f9cde155e4d515105c7b00ebc97..a723c51cf8dcd7528ce0a8dbec1b6f5e171b004f 100644 (file)
@@ -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(