From 0947bda39d907d41994e27e88e538bfc4bff0a35 Mon Sep 17 00:00:00 2001 From: Zoddo Date: Sun, 27 Sep 2015 17:48:12 +0200 Subject: [PATCH] [ticket/10343] Allows a_user to show inactive accounts in memberlist PHPBB3-10343 --- phpBB/memberlist.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index e64dab635b..5e05009825 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -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);