diff options
| author | Zoddo <zoddo.ino@gmail.com> | 2015-09-27 17:48:12 +0200 |
|---|---|---|
| committer | Zoddo <zoddo.ino@gmail.com> | 2015-09-27 17:55:49 +0200 |
| commit | 0947bda39d907d41994e27e88e538bfc4bff0a35 (patch) | |
| tree | 07f4c7866166814b760dcb6a13fcbe3017318048 | |
| parent | 7e379c4cea5452dad81adbc508b205badf49d25f (diff) | |
| download | forums-0947bda39d907d41994e27e88e538bfc4bff0a35.tar forums-0947bda39d907d41994e27e88e538bfc4bff0a35.tar.gz forums-0947bda39d907d41994e27e88e538bfc4bff0a35.tar.bz2 forums-0947bda39d907d41994e27e88e538bfc4bff0a35.tar.xz forums-0947bda39d907d41994e27e88e538bfc4bff0a35.zip | |
[ticket/10343] Allows a_user to show inactive accounts in memberlist
PHPBB3-10343
| -rw-r--r-- | phpBB/memberlist.php | 8 |
1 files changed, 7 insertions, 1 deletions
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); |
