summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;