From 136d741b8ebebbbce06774a3adb4ef24d7557cd5 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sat, 6 Jun 2026 16:42:56 +0000 Subject: [PATCH] Fix panel domain lookup without site builder tables. Use user-owned domains only; the extracted hosting app does not have websites or website_members tables. Co-authored-by: Cursor --- .../Controllers/Hosting/HostingPanelController.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/Http/Controllers/Hosting/HostingPanelController.php b/app/Http/Controllers/Hosting/HostingPanelController.php index ffb31ce..15efd54 100644 --- a/app/Http/Controllers/Hosting/HostingPanelController.php +++ b/app/Http/Controllers/Hosting/HostingPanelController.php @@ -1297,16 +1297,7 @@ class HostingPanelController extends Controller ->filter() ->all(); - $websiteIds = Website::where('owner_user_id', $userId)->pluck('id') - ->merge(WebsiteMember::where('user_id', $userId)->pluck('website_id')) - ->unique()->values(); - - $domainRegistryHosts = Domain::where(function ($q) use ($userId, $websiteIds) { - $q->where('user_id', $userId); - if ($websiteIds->isNotEmpty()) { - $q->orWhereIn('website_id', $websiteIds); - } - })->pluck('host'); + $domainRegistryHosts = Domain::where('user_id', $userId)->pluck('host'); $registeredDomains = RcServiceOrder::where('user_id', $userId) ->whereIn('order_type', [RcServiceOrder::TYPE_DOMAIN_REGISTRATION, RcServiceOrder::TYPE_DOMAIN_TRANSFER])