Skip to content

Commit

Permalink
CRM-17795 - Include OpenID
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Nov 19, 2016
1 parent 936766e commit 1c2ea45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Core/DAO/permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
$permissions['phone'] = $permissions['address'];
$permissions['website'] = $permissions['address'];
$permissions['im'] = $permissions['address'];
$permissions['open_i_d'] = $permissions['address'];

// Also managed by ACLs - CRM-19448
$permissions['entity_tag'] = array('default' => array());
Expand Down
1 change: 1 addition & 0 deletions api/v3/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,7 @@ function _civicrm_api3_check_edit_permissions($bao_name, $params) {
'CRM_Core_BAO_Address',
'CRM_Core_BAO_IM',
'CRM_Core_BAO_Website',
'CRM_Core_BAO_OpenID',
);
if (!empty($params['check_permissions']) && in_array($bao_name, $contactEntities)) {
$cid = !empty($params['contact_id']) ? $params['contact_id'] : CRM_Core_DAO::getFieldValue($bao_name, $params['id'], 'contact_id');
Expand Down

0 comments on commit 1c2ea45

Please sign in to comment.