mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Allow xml files to be uploads
This commit is contained in:
parent
d2fbf34beb
commit
eec0920d1d
@ -23,7 +23,9 @@ class UploadInvoiceRequest extends Request
|
||||
*/
|
||||
public function authorize() : bool
|
||||
{
|
||||
return auth()->user()->can('edit', $this->invoice);
|
||||
/** @var \App\Models\User $user */
|
||||
$user = auth()->user();
|
||||
return $user->can('edit', $this->invoice);
|
||||
}
|
||||
|
||||
public function rules()
|
||||
|
@ -20,7 +20,7 @@ class Request extends FormRequest
|
||||
use MakesHash;
|
||||
use RuntimeFormRequest;
|
||||
|
||||
protected $file_validation = 'sometimes|file|mimes:png,ai,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx,webp|max:20000';
|
||||
protected $file_validation = 'sometimes|file|mimes:png,ai,jpeg,tiff,pdf,gif,psd,txt,doc,xls,ppt,xlsx,docx,pptx,webp,xml|max:20000';
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user