1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 23:52:33 +01:00
invoiceninja/app/Http/Controllers/SchedulerController.php
2021-01-25 11:57:49 +11:00

16 lines
423 B
PHP

<?php
namespace App\Http\Controllers;
class SchedulerController extends Controller
{
public function index()
{
if (auth()->user()->company()->account->latest_version == '0.0.0') {
return response()->json(['message' => ctrans('texts.scheduler_has_never_run')], 400);
} else {
return response()->json(['message' => ctrans('texts.scheduler_has_run')], 200);
}
}
}