mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Handle when private invoice is viewed
This commit is contained in:
parent
e4852a0169
commit
a1e000a1e9
@ -601,7 +601,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
*/
|
*/
|
||||||
public function isSent()
|
public function isSent()
|
||||||
{
|
{
|
||||||
return $this->invoice_status_id >= INVOICE_STATUS_SENT;
|
return $this->invoice_status_id >= INVOICE_STATUS_SENT && $this->is_public;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user