1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Removing API limits for self host

This commit is contained in:
Hillel Coren 2015-03-05 20:31:55 +02:00
parent 3556871fa9
commit a1f5bef661

View File

@ -187,6 +187,10 @@ Route::filter('api.access', function()
sleep(3); sleep(3);
return Response::make('Invalid token', 403, $headers); return Response::make('Invalid token', 403, $headers);
} }
if (!Utils::isNinja()) {
return null;
}
if (!Utils::isPro()) { if (!Utils::isPro()) {
return Response::make('API requires pro plan', 403, $headers); return Response::make('API requires pro plan', 403, $headers);