Allow all API calls, even if the site is configured as private. The

API Actions will decide whether something requires auth or a redirect.
This commit is contained in:
Zach Copley 2009-11-04 21:33:59 -08:00
parent f28795656f
commit fbeae99884
1 changed files with 1 additions and 0 deletions

View File

@ -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;