summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-04 21:33:59 -0800
committerZach Copley <zach@status.net>2009-11-04 21:33:59 -0800
commitfbeae998840fb58ac2fbb8779f14eb2abe74cd08 (patch)
tree70ee6a32191acd5e1d6a1d5fa5caac744537ee1d /index.php
parentf28795656f9250707b2180c93fe9946d5066017b (diff)
Allow all API calls, even if the site is configured as private. The
API Actions will decide whether something requires auth or a redirect.
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 3acdba375..577b491ed 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;