X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FCustomValue.php;h=3a64cdb29d3b57c3f1a09e9120664b726c1433ae;hb=ab1d98dd07ec04f49b67a93e20ec9a6f8f347d9a;hp=8cbe6b3d08a89a8cc2d71619c09a9c48c76a6bf0;hpb=5760fcb6d5e8f36c514c7a00385e8d227212f46f;p=civicrm-core.git diff --git a/CRM/Core/BAO/CustomValue.php b/CRM/Core/BAO/CustomValue.php index 8cbe6b3d08..3a64cdb29d 100644 --- a/CRM/Core/BAO/CustomValue.php +++ b/CRM/Core/BAO/CustomValue.php @@ -206,4 +206,16 @@ class CRM_Core_BAO_CustomValue extends CRM_Core_DAO { ); } + /** + * ACL clause for an APIv4 custom pseudo-entity (aka multi-record custom group extending Contact). + * @return array + */ + public function addSelectWhereClause() { + $clauses = [ + 'entity_id' => CRM_Utils_SQL::mergeSubquery('Contact'), + ]; + CRM_Utils_Hook::selectWhereClause($this, $clauses); + return $clauses; + } + }