1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

[ticket/10343] Allows a_user to show inactive accounts in memberlist

PHPBB3-10343
This commit is contained in:
Zoddo 2015-09-27 17:48:12 +02:00
parent 7e379c4cea
commit 0947bda39d

View File

@ -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']);
// Get us some users :D
$sql = "SELECT u.user_id
FROM " . USERS_TABLE . " u
$sql_from
WHERE u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ")
WHERE u.user_type IN (" . implode(', ', $user_types) . ")
$sql_where
ORDER BY $order_by";
$result = $db->sql_query_limit($sql, $config['topics_per_page'], $start);