From ff64d23319be3fa8e2857ddb4c0db9e387825a4b Mon Sep 17 00:00:00 2001 From: jitendra Date: Sat, 15 Jun 2019 16:34:56 +0530 Subject: [PATCH] Guest removed from customer pages --- .../src/Http/Controllers/Customer/CustomerController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Admin/src/Http/Controllers/Customer/CustomerController.php b/packages/Webkul/Admin/src/Http/Controllers/Customer/CustomerController.php index c2b700582..6f0e2dfa9 100755 --- a/packages/Webkul/Admin/src/Http/Controllers/Customer/CustomerController.php +++ b/packages/Webkul/Admin/src/Http/Controllers/Customer/CustomerController.php @@ -83,7 +83,7 @@ class CustomerController extends Controller */ public function create() { - $customerGroup = $this->customerGroup->all(); + $customerGroup = $this->customerGroup->findWhere([['id', '<>', 0]]); $channelName = $this->channel->all(); @@ -131,7 +131,7 @@ class CustomerController extends Controller { $customer = $this->customer->findOrFail($id); - $customerGroup = $this->customerGroup->all(); + $customerGroup = $this->customerGroup->findWhere([['id', '<>', 0]]); $channelName = $this->channel->all();