diff --git a/include/api.php b/include/api.php index 42b25a6c1..92230cc61 100644 --- a/include/api.php +++ b/include/api.php @@ -95,11 +95,6 @@ function api_user() return $user; } - $user = BasicAuth::getCurrentUserID(false); - if (!empty($user)) { - return $user; - } - if (!empty($_SESSION['allow_api'])) { return local_user(); }