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:
8f36695
)
CRM-18049 - Backport api campaign permissions
author
Coleman Watts
<coleman@civicrm.org>
Tue, 16 Feb 2016 22:51:07 +0000
(17:51 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Tue, 16 Feb 2016 22:51:07 +0000
(17:51 -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 66012a56b1d4cdce910eb4163e19d42c7b2f1ef6..44420d70b459c3843e93f8a0b72cf28cc6536962 100644
(file)
--- a/
CRM/Core/DAO/permissions.php
+++ b/
CRM/Core/DAO/permissions.php
@@
-167,6
+167,16
@@
function _civicrm_api3_permissions($entity, $action, &$params) {
),
);
+ // Campaign permissions
+ $permissions['campaign'] = array(
+ 'get' => array('access CiviCRM'),
+ 'default' => array(
+ // nested array = OR
+ array('administer CiviCampaign', 'manage campaign'),
+ ),
+ );
+ $permissions['survey'] = $permissions['campaign'];
+
// Financial permissions
$permissions['contribution'] = array(
'get' => array(