mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10343] Allows a_user to show inactive accounts in memberlist
PHPBB3-10343
This commit is contained in:
parent
7e379c4cea
commit
0947bda39d
1 changed files with 7 additions and 1 deletions
|
@ -1345,13 +1345,19 @@ switch ($mode)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user_types = array(USER_NORMAL, USER_FOUNDER);
|
||||||
|
if ($auth->acl_get('a_user') || $user->data['user_type'] == USER_FOUNDER)
|
||||||
|
{
|
||||||
|
$user_types[] = USER_INACTIVE;
|
||||||
|
}
|
||||||
|
|
||||||
$start = $pagination->validate_start($start, $config['topics_per_page'], $config['num_users']);
|
$start = $pagination->validate_start($start, $config['topics_per_page'], $config['num_users']);
|
||||||
|
|
||||||
// Get us some users :D
|
// Get us some users :D
|
||||||
$sql = "SELECT u.user_id
|
$sql = "SELECT u.user_id
|
||||||
FROM " . USERS_TABLE . " u
|
FROM " . USERS_TABLE . " u
|
||||||
$sql_from
|
$sql_from
|
||||||
WHERE u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ")
|
WHERE u.user_type IN (" . implode(', ', $user_types) . ")
|
||||||
$sql_where
|
$sql_where
|
||||||
ORDER BY $order_by";
|
ORDER BY $order_by";
|
||||||
$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);
|
$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);
|
||||||
|
|
Loading…
Add table
Reference in a new issue