From fbeae998840fb58ac2fbb8779f14eb2abe74cd08 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 4 Nov 2009 21:33:59 -0800 Subject: [PATCH] Allow all API calls, even if the site is configured as private. The API Actions will decide whether something requires auth or a redirect. --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 3acdba3754..577b491ed0 100644 --- a/index.php +++ b/index.php @@ -239,6 +239,7 @@ function main() if (!$user && common_config('site', 'private') && !isLoginAction($action) && !preg_match('/rss$/', $action) + && !preg_match('/^Api/', $action) ) { common_redirect(common_local_url('login')); return; -- 2.39.2