Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10356

Username search should find all users for administrators instead of NORMALs and FOUNDERs only

    Details

      Description

      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 . ")

      into

      WHERE " . ( $auth->acl_get('a_')? '1': "u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ")" ) . "

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Marc Marc
                Reporter:
                AmigoJack AmigoJack
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: