mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +01:00
Merge pull request #711 from turbo124/master
Jump over duplicate checks if request comes from API
This commit is contained in:
commit
0e5ca1fd28
@ -7,6 +7,11 @@ class DuplicateSubmissionCheck
|
||||
// Prevent users from submitting forms twice
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
|
||||
if ($request->is('api/v1/*')) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
$path = $request->path();
|
||||
|
||||
if (strpos($path, 'charts_and_reports') !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user