includes/session/SessionManager.php 2 locations
|
@@ 401-406 (lines=6) @@
|
| 398 |
|
} |
| 399 |
|
|
| 400 |
|
// Wiki is read-only? |
| 401 |
|
if ( wfReadOnly() ) { |
| 402 |
|
$logger->debug( __METHOD__ . ': denied by wfReadOnly()' ); |
| 403 |
|
$user->setId( 0 ); |
| 404 |
|
$user->loadFromId(); |
| 405 |
|
return false; |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
$userName = $user->getName(); |
| 409 |
|
|
|
@@ 414-419 (lines=6) @@
|
| 411 |
|
// no point in retrying. |
| 412 |
|
$session = self::getGlobalSession(); |
| 413 |
|
$reason = $session->get( 'MWSession::AutoCreateBlacklist' ); |
| 414 |
|
if ( $reason ) { |
| 415 |
|
$logger->debug( __METHOD__ . ": blacklisted in session ($reason)" ); |
| 416 |
|
$user->setId( 0 ); |
| 417 |
|
$user->loadFromId(); |
| 418 |
|
return false; |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
// Is the IP user able to create accounts? |
| 422 |
|
$anon = new User; |