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:
parent
034f86a03e
commit
faad8e36bb
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user