X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fauthorizationplugin.php;h=dda604addd8a0b2b04244476866fea3b18607fe3;hb=8b78e01d4c4b9512a7b74efa52fcaf37de0dc6f1;hp=733b0c065652a608c0670f38c84a20f54ee82b7d;hpb=fdb64eed2f1d24ad38fe4a6bc680e3592647c0a6;p=quix0rs-gnu-social.git diff --git a/lib/authorizationplugin.php b/lib/authorizationplugin.php index 733b0c0656..dda604addd 100644 --- a/lib/authorizationplugin.php +++ b/lib/authorizationplugin.php @@ -22,6 +22,7 @@ * @category Plugin * @package StatusNet * @author Craig Andrews + * @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/ */ @@ -39,7 +40,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - abstract class AuthorizationPlugin extends Plugin { //is this plugin authoritative for authorization? @@ -67,7 +67,7 @@ abstract class AuthorizationPlugin extends Plugin //------------Below are the methods that connect StatusNet to the implementing Auth plugin------------\\ - function onStartSetUser(&$user) { + function onStartSetUser($user) { $loginAllowed = $this->loginAllowed($user); if($loginAllowed === true){ return; @@ -84,8 +84,8 @@ abstract class AuthorizationPlugin extends Plugin } } - function onStartSetApiUser(&$user) { - return $this->onStartSetUser(&$user); + function onStartSetApiUser($user) { + return $this->onStartSetUser($user); } function onStartHasRole($profile, $name, &$has_role) { @@ -102,4 +102,3 @@ abstract class AuthorizationPlugin extends Plugin } } } -