X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2Fpermissions.php;h=6ba337cd1b4a1710b18d6fb62fc9755547e28066;hb=4a3c7961f8c578506bdc6b8c0909b1ea435a9739;hp=7eec741ed822721536bd4b932cdb633a1024cdf0;hpb=2bbde18cfed6f40e7c1f8c2cb9eb974551bdd807;p=civicrm-core.git diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index 7eec741ed8..6ba337cd1b 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -50,7 +50,7 @@ function _civicrm_api3_permissions($entity, $action, &$params) { CRM_Utils_Hook::alterAPIPermissions($entity, $action, $params, $permissions); // Merge permissions for this entity with the defaults - $perm = CRM_Utils_Array::value($entity, $permissions, array()) + $permissions['default']; + $perm = CRM_Utils_Array::value($entity, $permissions, []) + $permissions['default']; // Return exact match if permission for this action has been declared if (isset($perm[$action])) {