From b620b6e60849e8ca7e4b54638a599c1cd2d44572 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Thu, 27 Dec 2012 10:20:51 -0500 Subject: [PATCH] api: add 'allow_api' to user authenticated via oauth --- include/oauth.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/oauth.php b/include/oauth.php index 28ac4428f0..de6f1e00db 100644 --- a/include/oauth.php +++ b/include/oauth.php @@ -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; -- 2.39.5