mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Done away with group vs. user switching, no point
git-svn-id: file:///svn/phpbb/trunk@1045 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
887bcf7494
commit
f1233468cf
1 changed files with 11 additions and 17 deletions
|
@ -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'];
|
||||
case AUTH_ACL:
|
||||
$result = $u_access[$j][$key];
|
||||
|
||||
$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;
|
||||
}
|
||||
|
||||
$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
|
||||
|
|
Loading…
Add table
Reference in a new issue