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.php28
1 files changed, 11 insertions, 17 deletions
diff --git a/phpBB/includes/auth.php b/phpBB/includes/auth.php
index 5fcbe0eb4f..acf0456119 100644
--- a/phpBB/includes/auth.php
+++ b/phpBB/includes/auth.php
@@ -339,27 +339,21 @@ function auth_check_user($type, $key, $u_access, $is_admin)
{
for($j = 0; $j < count($u_access); $j++)
{
- if(!$single_user)
+ $result = 0;
+ switch($type)
{
- $single_user = $u_access[$j]['group_single_user'];
-
- $result = 0;
- switch($type)
- {
- case AUTH_ACL:
- $result = $u_access[$j][$key];
-
- case AUTH_MOD:
- $result = $result || $u_access[$j]['auth_mod'];
-
- case AUTH_ADMIN:
- $result = $result || $is_admin;
- break;
- }
+ case AUTH_ACL:
+ $result = $u_access[$j][$key];
- $auth_user = (!$single_user) ? ( $auth_user || $result ) : $result;
+ case AUTH_MOD:
+ $result = $result || $u_access[$j]['auth_mod'];
+ case AUTH_ADMIN:
+ $result = $result || $is_admin;
+ break;
}
+
+ $auth_user = $auth_user || $result;
}
}
else