1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for start/stop task with API

This commit is contained in:
Hillel Coren 2018-01-09 09:05:29 +02:00
parent 034f86a03e
commit faad8e36bb

View File

@ -74,7 +74,7 @@ class BaseAPIController extends Controller
$entity = $request->entity();
$action = $request->action;
if (! in_array($action, ['archive', 'delete', 'restore', 'mark_sent'])) {
if (! in_array($action, ['archive', 'delete', 'restore', 'mark_sent', 'offline'])) {
return $this->errorResponse("Action [$action] is not supported");
}