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