-
Improvement
-
Resolution: Fixed
-
Minor
-
3.0.9
-
None
-
MySQL 5
When using the username search (in ACP, memberlist, PM recipients, add friends/foes...) the results are always filtered to only bring those of user_type USER_NORMAL and USER_FOUNDER. While this is good for normal users, administrators should be able to find all users. I've encountered at least two topics in the support forums where users were unable to find usernames, just because those were USER_INACTIVE.
To overcome this, the search should omit the filter on user_type if the current user has administrator permissions. The changes would affect /memberlist.php only: for both occurances change
WHERE u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ")
|
WHERE " . ( $auth->acl_get('a_')? '1': "u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ")" ) . "
|
- is related to
-
PHPBB-7178 searching users on emailaddress in ACP
- Closed