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
cb676fc021
commit
91a4ce1f37
@ -667,7 +667,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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user