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.php8
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);