From 0ecef260644058728988c035cc9a8c66efa7cd17 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 11 Jun 2021 06:02:56 +0000 Subject: [PATCH] Making the tests work --- include/api.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/api.php b/include/api.php index df92e9960b..42b25a6c1b 100644 --- a/include/api.php +++ b/include/api.php @@ -100,6 +100,10 @@ function api_user() return $user; } + if (!empty($_SESSION['allow_api'])) { + return local_user(); + } + return false; }