]> git.mxchange.org Git - friendica.git/commitdiff
Making the tests work
authorMichael <heluecht@pirati.ca>
Fri, 11 Jun 2021 06:02:56 +0000 (06:02 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 11 Jun 2021 06:02:56 +0000 (06:02 +0000)
include/api.php

index df92e9960bce64e18adfb3315160290d7ef5b3e5..42b25a6c1be5a3d31e715505eec01d1616d9ec32 100644 (file)
@@ -100,6 +100,10 @@ function api_user()
                return $user;
        }
 
+       if (!empty($_SESSION['allow_api'])) {
+               return local_user();
+       }
+
        return false;
 }