From 7fe647c3abc5e4a692b9379db233d527b79b2cfb Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 26 Jun 2017 07:51:07 -0400 Subject: [PATCH] Internal API can't be disabled --- api/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/index.php b/api/index.php index 6ec11b83..4b0e6e6e 100644 --- a/api/index.php +++ b/api/index.php @@ -16,13 +16,12 @@ function handle404() { } function before() { - assertApiIsEnabled(); - $internalUse = \BusinessLogic\Helpers::getHeader('X-INTERNAL-CALL'); if ($internalUse === 'true') { buildUserContextFromSession(); } else { + assertApiIsEnabled(); $token = \BusinessLogic\Helpers::getHeader('X-AUTH-TOKEN'); buildUserContext($token); }