X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapibareauth.php;h=043181b07a4933c7d88891012ddb7b9f7364ff41;hb=b9177f5e2e3f9697ef1d2863c827d03154ff828e;hp=2d29c1ddd6d9aa61f29e623280e0a5cb99051a7c;hpb=b4b992bca77d34b8643910e8d590b5be7fede94b;p=quix0rs-gnu-social.git diff --git a/lib/apibareauth.php b/lib/apibareauth.php index 2d29c1ddd6..043181b07a 100644 --- a/lib/apibareauth.php +++ b/lib/apibareauth.php @@ -30,8 +30,9 @@ * @author Evan Prodromou * @author mEDI * @author Sarven Capadisli - * @author Zach Copley + * @author Zach Copley * @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 * @link http://status.net/ */ @@ -59,10 +60,8 @@ 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 ApiBareAuthAction extends ApiAuthAction { - /** * Take arguments for running * @@ -71,7 +70,6 @@ class ApiBareAuthAction extends ApiAuthAction * @return boolean success flag * */ - function prepare($args) { parent::prepare($args); @@ -83,18 +81,15 @@ class ApiBareAuthAction extends ApiAuthAction * * @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; } // check whether a user has been specified somehow - $id = $this->arg('id'); $user_id = $this->arg('user_id'); $screen_name = $this->arg('screen_name'); @@ -105,5 +100,4 @@ class ApiBareAuthAction extends ApiAuthAction return false; } - -} \ No newline at end of file +}