diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index acf0456119..d2bb461fa3 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -175,7 +175,8 @@ function auth($type, $forum_id, $userdata, $f_access = -1) $forum_match_sql";*/ $sql = "SELECT a.forum_id, $a_sql, a.auth_mod, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE ug.user_id = ".$userdata['user_id']. " + WHERE ug.user_id = ".$userdata['user_id']. " + AND ug.user_pending = 0 AND g.group_id = ug.group_id AND a.group_id = ug.group_id $forum_match_sql";