Added 'view export invoice' permission
This commit is contained in:
@@ -886,7 +886,10 @@ class InvoiceValidationResource extends Resource
|
||||
ExportAction::make()
|
||||
->label('Export Invoices')
|
||||
->color('warning')
|
||||
->exporter(InvoiceValidationExporter::class),
|
||||
->exporter(InvoiceValidationExporter::class)
|
||||
->visible(function() {
|
||||
return Filament::auth()->user()->can('view export invoice');
|
||||
}),
|
||||
])
|
||||
|
||||
->filters([
|
||||
|
||||
Reference in New Issue
Block a user