If the user is allowed to view hidden users, put a missing property on all users.
For list=users, do the same, but we can't easily distinguish to other people the difference between "hidden", or "missing", so no reason to do it
$lastUserData['blockreason'] = $row->ipb_reason;
$lastUserData['blockexpiry'] = $row->ipb_expiry;
}
+ if ( $row->ipb_deleted ) {
+ $lastUserData['hidden'] = '';
+ }
if ( $fld_editcount ) {
$lastUserData['editcount'] = intval( $row->user_editcount );
}
'ipblocks' => array( 'LEFT JOIN', 'ipb_user=user_id' ),
) );
+ $this->addFields( 'ipb_deleted' );
+
if ( $showBlockInfo ) {
$this->addFields( array( 'ipb_reason', 'ipb_by_text', 'ipb_expiry' ) );
}
User::getGroupPermissions( array( $row->ug_group ) ) ) );
$result->setIndexedTagName( $data[$name]['rights'], 'r' );
}
-
+ if ( $row->ipb_deleted ) {
+ $data[$name]['hidden'] = '';
+ }
if ( isset( $this->prop['blockinfo'] ) && !is_null( $row->ipb_by_text ) ) {
$data[$name]['blockedby'] = $row->ipb_by_text;
$data[$name]['blockreason'] = $row->ipb_reason;