diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-01 15:00:19 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-06-01 15:00:19 +0000 |
commit | 2210961fa5d2e1c968e992b144d5113f5743cb4b (patch) | |
tree | c7a3ea5518189ed7cfa7e8725f9e45e4757f5fe7 /phpBB/includes | |
parent | ad4cfc051ca94b8f326072bd877ede82195188d6 (diff) | |
download | forums-2210961fa5d2e1c968e992b144d5113f5743cb4b.tar forums-2210961fa5d2e1c968e992b144d5113f5743cb4b.tar.gz forums-2210961fa5d2e1c968e992b144d5113f5743cb4b.tar.bz2 forums-2210961fa5d2e1c968e992b144d5113f5743cb4b.tar.xz forums-2210961fa5d2e1c968e992b144d5113f5743cb4b.zip |
Some hopefully finalish updates to auth schema
git-svn-id: file:///svn/phpbb/trunk@403 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/auth.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php index f7959d8f5d..ee9d452360 100644 --- a/phpBB/includes/auth.php +++ b/phpBB/includes/auth.php @@ -148,7 +148,7 @@ function auth($type, $forum_id, $userdata, $f_access = -1) else { $forum_match_sql = ($forum_id != AUTH_LIST_ALL) ? "AND aa.forum_id = $forum_id" : ""; - $sql = "SELECT aa.forum_id, $a_sql, aa.auth_mod, g.single_user + $sql = "SELECT aa.forum_id, $a_sql, aa.auth_mod, g.group_single_user FROM ".AUTH_ACCESS_TABLE." aa, " . USER_GROUP_TABLE. " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = ".$userdata['user_id']. " AND g.group_id = ug.group_id @@ -232,7 +232,7 @@ function auth($type, $forum_id, $userdata, $f_access = -1) { if(!$single_user) { - $single_user = $u_access[$j]['single_user']; + $single_user = $u_access[$j]['group_single_user']; $result = (!$single_user) ? ($auth_user[$key] || $u_access[$j][$key] || $u_access[$i]['auth_mod'] || $is_admin) : ($u_access[$j][$key] || $u_access[$i]['auth_mod'] || $is_admin); @@ -253,7 +253,7 @@ function auth($type, $forum_id, $userdata, $f_access = -1) { if(!$single_user) { - $single_user = $u_access[$j]['single_user']; + $single_user = $u_access[$j]['group_single_user']; $auth_user[$key] = (!$single_user) ? ($auth_user[$key] || $u_access[$j]['auth_mod'] || $is_admin) : ($u_access[$j]['auth_mod'] || $is_admin); @@ -304,7 +304,7 @@ function auth($type, $forum_id, $userdata, $f_access = -1) { if(!$single_user) { - $single_user = $u_access[$j]['single_user']; + $single_user = $u_access[$j]['group_single_user']; $result = (!$single_user) ? ($auth_user['auth_mod'] || $u_access[$j]['auth_mod'] || $is_admin) : ($u_access[$j]['auth_mod'] || $is_admin); |