mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Checks for routes
This commit is contained in:
parent
fdca196215
commit
3006f5882b
@ -176,7 +176,11 @@ class Document extends BaseModel
|
||||
|
||||
public function generateRoute($absolute = false)
|
||||
{
|
||||
try{
|
||||
return route('api.documents.show', ['document' => $this->hashed_id]).'/download';
|
||||
}catch(\Exception $e){
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteFile()
|
||||
|
Loading…
Reference in New Issue
Block a user