|
@@ 2041-2049 (lines=9) @@
|
| 2038 |
|
* |
| 2039 |
|
* @return bool True if locked, false otherwise |
| 2040 |
|
*/ |
| 2041 |
|
public function isLocked() { |
| 2042 |
|
if ( $this->mLocked !== null ) { |
| 2043 |
|
return $this->mLocked; |
| 2044 |
|
} |
| 2045 |
|
$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
| 2046 |
|
$this->mLocked = $authUser && $authUser->isLocked(); |
| 2047 |
|
Hooks::run( 'UserIsLocked', [ $this, &$this->mLocked ] ); |
| 2048 |
|
return $this->mLocked; |
| 2049 |
|
} |
| 2050 |
|
|
| 2051 |
|
/** |
| 2052 |
|
* Check if user account is hidden |
|
@@ 2056-2067 (lines=12) @@
|
| 2053 |
|
* |
| 2054 |
|
* @return bool True if hidden, false otherwise |
| 2055 |
|
*/ |
| 2056 |
|
public function isHidden() { |
| 2057 |
|
if ( $this->mHideName !== null ) { |
| 2058 |
|
return $this->mHideName; |
| 2059 |
|
} |
| 2060 |
|
$this->getBlockedStatus(); |
| 2061 |
|
if ( !$this->mHideName ) { |
| 2062 |
|
$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
| 2063 |
|
$this->mHideName = $authUser && $authUser->isHidden(); |
| 2064 |
|
Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ] ); |
| 2065 |
|
} |
| 2066 |
|
return $this->mHideName; |
| 2067 |
|
} |
| 2068 |
|
|
| 2069 |
|
/** |
| 2070 |
|
* Get the user's ID. |