From 8d6cd42c360e0b72f691ebb2456e569333075986 Mon Sep 17 00:00:00 2001 From: Yashodha Chaku Date: Fri, 7 Aug 2026 19:02:34 +0530 Subject: [PATCH] restrict mailing by domain --- CRM/Mailing/Selector/Browse.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Mailing/Selector/Browse.php b/CRM/Mailing/Selector/Browse.php index 9187d6ded794..e5cede138176 100644 --- a/CRM/Mailing/Selector/Browse.php +++ b/CRM/Mailing/Selector/Browse.php @@ -633,6 +633,9 @@ public function whereClause(&$params, $sortBy = TRUE) { $params[6] = [$language, 'String']; } + $params[7] = [CRM_Core_Config::domainID(), 'Integer']; + $clauses[] = " ( domain_id = %7 ) "; + if (empty($clauses)) { return 1; }