Remove deprecated call-time pass-by-reference
This commit is contained in:
parent
a02e5b302b
commit
aa6e198c12
@ -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,7 +84,7 @@ abstract class AuthorizationPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
|
||||
function onStartSetApiUser(&$user) {
|
||||
function onStartSetApiUser($user) {
|
||||
return $this->onStartSetUser($user);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user