mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 09:40:41 +00:00
Merge "ForeignWikiRequest: Also check User::isSafeToLoad()"
This commit is contained in:
commit
e463fd81a9
|
@ -38,9 +38,11 @@ class EchoForeignWikiRequest {
|
|||
}
|
||||
|
||||
protected function canUseCentralAuthl() {
|
||||
global $wgFullyInitialised;
|
||||
global $wgFullyInitialised, $wgUser;
|
||||
|
||||
return $wgFullyInitialised &&
|
||||
$wgUser->isSafeToLoad() &&
|
||||
$this->user->isSafeToLoad() &&
|
||||
SessionManager::getGlobalSession()->getProvider() instanceof CentralAuthSessionProvider &&
|
||||
$this->getCentralId( $this->user ) !== 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue