1
0
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:
David Bomba 2016-02-10 13:49:29 +11:00
commit 0e5ca1fd28

View File

@ -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) {