diff --git a/core/users/users.php b/core/users/users.php index 571db4e7ff..8cab855fcc 100644 --- a/core/users/users.php +++ b/core/users/users.php @@ -73,7 +73,12 @@ $sql_where .= ") "; $parameters['search'] = '%'.$search.'%'; } - $sql_where .= "and group_level <= :group_level "; + $sql_where .= "and ( "; + $sql_where .= " group_level <= :group_level "; + if (permission_exists('user_all')) { + $sql_where .= " or group_level is null "; + } + $sql_where .= ") "; $parameters['group_level'] = $_SESSION['user']['group_level']; //get the user count from the database