]> git.mxchange.org Git - friendica.git/commitdiff
api: add 'allow_api' to user authenticated via oauth
authorFabrixxm <fabrix.xm@gmail.com>
Thu, 27 Dec 2012 15:20:51 +0000 (10:20 -0500)
committerFabrixxm <fabrix.xm@gmail.com>
Thu, 27 Dec 2012 15:20:51 +0000 (10:20 -0500)
include/oauth.php

index 28ac4428f0c22844720463b277978d76c9789eb5..de6f1e00db1199a4b032d0dacd821e0143ea780a 100644 (file)
@@ -150,6 +150,7 @@ class FKOAuth1 extends OAuthServer {
                $_SESSION['page_flags'] = $record['page-flags'];
                $_SESSION['my_url'] = $a->get_baseurl() . '/profile/' . $record['nickname'];
                $_SESSION['addr'] = $_SERVER['REMOTE_ADDR'];
+               $_SESSION["allow_api"] = true;
 
                //notice( t("Welcome back ") . $record['username'] . EOL);
                $a->user = $record;