mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-05 11:10:16 -04:00
Add comment
This commit is contained in:
parent
f1453fe9a3
commit
dbf136ba41
@ -161,6 +161,7 @@ class EntityModel extends Eloquent
|
||||
|
||||
$query->where($this->getTable() .'.account_id', '=', $accountId);
|
||||
|
||||
// If 'false' is passed as the publicId return nothing rather than everything
|
||||
if (func_num_args() > 1 && ! $publicId && ! $accountId) {
|
||||
$query->where('id', '=', 0);
|
||||
return $query;
|
||||
|
Loading…
x
Reference in New Issue
Block a user