From a1e000a1e9143616d6c82349c804db5414096199 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 11 Jan 2017 16:24:18 +0200 Subject: [PATCH] Handle when private invoice is viewed --- app/Models/Invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index eb2ede973a4f..1f91badfaa8e 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -601,7 +601,7 @@ class Invoice extends EntityModel implements BalanceAffecting */ public function isSent() { - return $this->invoice_status_id >= INVOICE_STATUS_SENT; + return $this->invoice_status_id >= INVOICE_STATUS_SENT && $this->is_public; } /**