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:
31d369b
)
CRM-17741 - Permissions for RelationshipType.get API.
author
Johan Vervloet
<johanv@johanv.org>
Tue, 22 Dec 2015 12:42:59 +0000
(13:42 +0100)
committer
Johan Vervloet
<johanv@johanv.org>
Tue, 22 Dec 2015 12:42:59 +0000
(13:42 +0100)
----------------------------------------
* CRM-17741: RelationshipType.get API requires Administer CiviCRM permissions
https://issues.civicrm.org/jira/browse/CRM-17741
CRM/Core/DAO/permissions.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO/permissions.php
b/CRM/Core/DAO/permissions.php
index 03bbfe0ad9d91d6c06764fe116e5d2db4a2fe206..6e335f41ab2257863ccf863784e8dc70e26620c4 100644
(file)
--- a/
CRM/Core/DAO/permissions.php
+++ b/
CRM/Core/DAO/permissions.php
@@
-149,6
+149,16
@@
function _civicrm_api3_permissions($entity, $action, &$params) {
),
);
+ // CRM-17741 - Permissions for RelationshipType.
+ $permissions['relationship_type'] = array(
+ 'get' => array(
+ 'access CiviCRM',
+ ),
+ 'default' => array(
+ 'administer CiviCRM',
+ ),
+ );
+
// Activity permissions
$permissions['activity'] = array(
'delete' => array(