Internal API can't be disabled

remotes/remote_mirror_8/master
Mike Koch pirms 7 gadiem
vecāks 81a5b6633c
revīzija 7fe647c3ab

@ -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);
}

Notiek ielāde…
Atcelt
Saglabāt