mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Change for Zapier
This commit is contained in:
parent
94954aebef
commit
068302a793
@ -36,9 +36,9 @@ class AccountApiController extends BaseAPIController
|
||||
{
|
||||
$headers = Utils::getApiHeaders();
|
||||
|
||||
// Legacy support for Zapier
|
||||
// Legacy support for Zapier
|
||||
if (request()->v2) {
|
||||
return $this->response(RESULT_SUCCESS);
|
||||
return $this->response(auth()->user()->email);
|
||||
} else {
|
||||
return Response::make(RESULT_SUCCESS, 200, $headers);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user