summaryrefslogtreecommitdiff
path: root/lib/apiprivateauth.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-13 00:57:35 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-13 21:10:55 +0200
commit39802077a861c2d4e15bae5f04c9f7dbf94151b8 (patch)
tree37ec392b728d05449b89b198c344dbdc55b9eeac /lib/apiprivateauth.php
parent8c94ebf5375fe8ab9cb450525436396404d3fd33 (diff)
* update/add translator documentation
* remove superfluous whitespace
Diffstat (limited to 'lib/apiprivateauth.php')
-rw-r--r--lib/apiprivateauth.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/apiprivateauth.php b/lib/apiprivateauth.php
index 5e78c65a1..df401c382 100644
--- a/lib/apiprivateauth.php
+++ b/lib/apiprivateauth.php
@@ -29,7 +29,7 @@
* @author Evan Prodromou <evan@status.net>
* @author mEDI <medi@milaro.net>
* @author Sarven Capadisli <csarven@status.net>
- * @author Zach Copley <zach@status.net>
+ * @author Zach Copley <zach@status.net>
* @copyright 2009 StatusNet, Inc.
* @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
@@ -58,26 +58,21 @@ require_once INSTALLDIR.'/lib/apiauth.php';
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class ApiPrivateAuthAction extends ApiAuthAction
{
-
/**
* Does this API resource require authentication?
*
* @return boolean true or false
*/
-
function requiresAuth()
{
// If the site is "private", all API methods except statusnet/config
// need authentication
-
if (common_config('site', 'private')) {
return true;
}
return false;
}
-
}