mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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
|
// Prevent users from submitting forms twice
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if ($request->is('api/v1/*')) {
|
||||||
|
return $next($request);
|
||||||
|
}
|
||||||
|
|
||||||
$path = $request->path();
|
$path = $request->path();
|
||||||
|
|
||||||
if (strpos($path, 'charts_and_reports') !== false) {
|
if (strpos($path, 'charts_and_reports') !== false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user