aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-16 18:23:57 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-16 18:23:57 +0000
commit64356b885e8014696cb8c34d6b387e0153851e42 (patch)
tree6b48b234a721a0138a45ca05412d15a2f0204d28 /phpBB/includes/auth.php
parent8f7ee5f29541247cc1519167d430466609d50b3e (diff)
downloadforums-64356b885e8014696cb8c34d6b387e0153851e42.tar
forums-64356b885e8014696cb8c34d6b387e0153851e42.tar.gz
forums-64356b885e8014696cb8c34d6b387e0153851e42.tar.bz2
forums-64356b885e8014696cb8c34d6b387e0153851e42.tar.xz
forums-64356b885e8014696cb8c34d6b387e0153851e42.zip
Should fix bug #462074
git-svn-id: file:///svn/phpbb/trunk@1049 89ea8834-ac86-4346-8a33-228a782c2dd0
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";