From bb116e43fc8ca597c10cb59665be603f6b369461 Mon Sep 17 00:00:00 2001 From: October CMS Date: Mon, 18 Sep 2023 16:50:13 +1000 Subject: [PATCH] Only propagate to sites within the same group (context) --- src/Database/Traits/Multisite.php | 2 +- src/Support/Facades/Site.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Database/Traits/Multisite.php b/src/Database/Traits/Multisite.php index 486f6e080..32583aad9 100644 --- a/src/Database/Traits/Multisite.php +++ b/src/Database/Traits/Multisite.php @@ -250,7 +250,7 @@ public function isMultisiteSyncEnabled() */ public function getMultisiteSyncSites() { - return Site::listSiteIds(); + return Site::listSiteIdsInContext(); } /** diff --git a/src/Support/Facades/Site.php b/src/Support/Facades/Site.php index a45168cd4..7b8b5b0a1 100644 --- a/src/Support/Facades/Site.php +++ b/src/Support/Facades/Site.php @@ -12,6 +12,7 @@ * @method static bool hasMultiSite() * @method static array listEnabled() * @method static array listSiteIds() + * @method static array listSiteIdsInContext() * @method static array listSites() * @method static int|null getSiteIdFromContext() * @method static mixed getSiteFromContext()