aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/auth.php')
-rw-r--r--phpBB/includes/auth.php3
1 files changed, 2 insertions, 1 deletions
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";