mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Update InvoiceDatatable.php
This commit is contained in:
parent
0ee6ac1d9a
commit
910424075f
@ -20,7 +20,7 @@ class InvoiceDatatable extends EntityDatatable
|
||||
[
|
||||
$entityType == ENTITY_INVOICE ? 'invoice_number' : 'quote_number',
|
||||
function ($model) use ($entityType) {
|
||||
if(Auth::user()->can('view', [ENTITY_INVOICE, $model])) {
|
||||
if(Auth::user()->can('view', [$this->entityType, $model])) {
|
||||
$str = link_to("{$entityType}s/{$model->public_id}/edit", $model->invoice_number, ['class' => Utils::getEntityRowClass($model)])->toHtml();
|
||||
return $this->addNote($str, $model->private_notes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user