From 2da91729b385aa51dd28c68f912dd280f585794b Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 12 Jan 2017 22:25:01 +0200 Subject: [PATCH] Enable sending emails from alternate domain --- app/Models/Invitation.php | 2 +- app/Models/Traits/SendsEmails.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Invitation.php b/app/Models/Invitation.php index 1790ce556e..5b62b82181 100644 --- a/app/Models/Invitation.php +++ b/app/Models/Invitation.php @@ -73,7 +73,7 @@ class Invitation extends EntityModel $url = trim(SITE_URL, '/'); if ($account->hasFeature(FEATURE_CUSTOM_URL)) { - if (Utils::isNinja()) { + if (Utils::isNinjaProd()) { $url = $account->present()->clientPortalLink(); } diff --git a/app/Models/Traits/SendsEmails.php b/app/Models/Traits/SendsEmails.php index 8c80012f4c..4843afa5e3 100644 --- a/app/Models/Traits/SendsEmails.php +++ b/app/Models/Traits/SendsEmails.php @@ -15,7 +15,7 @@ trait SendsEmails public function getFromEmail() { - if ( ! $this->isPro() || ! Utils::isNinja()) { + if ( ! $this->isPro() || ! Utils::isNinjaProd() || Utils::isReseller()) { return false; }