mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 23:22:52 +01:00
Merge fix to prevent marking quotes as paid
This commit is contained in:
parent
3517529626
commit
e7b8a64f28
@ -122,8 +122,8 @@ class InvoiceDatatable extends EntityDatatable
|
|||||||
function ($model) use ($entityType) {
|
function ($model) use ($entityType) {
|
||||||
return "javascript:submitForm_{$entityType}('markPaid', {$model->public_id})";
|
return "javascript:submitForm_{$entityType}('markPaid', {$model->public_id})";
|
||||||
},
|
},
|
||||||
function ($model) {
|
function ($model) use ($entityType) {
|
||||||
return $model->is_public && $model->balance > 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
|
return $entityType == ENTITY_INVOICE && $model->balance > 0 && Auth::user()->can('editByOwner', [ENTITY_INVOICE, $model->user_id]);
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user