From 652673176bdd37717001c0c79d6f48197a3dd5a4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Oct 2017 23:11:00 +0300 Subject: [PATCH] Include plan in contact email --- app/Http/Controllers/HomeController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 921a7a3c30ef..6954b1c86706 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -149,6 +149,12 @@ class HomeController extends BaseController $subject = 'Customer Message: '; if (Utils::isNinjaProd()) { $subject .= str_replace('db-', '', config('database.default')); + $account = Auth::user()->account; + if ($account->isEnterprise()) { + $subject .= 'E'; + } elseif ($account->isPro()) { + $subject .= 'P'; + } } else { $subject .= 'Self-Host'; }