mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
And another fix, whos idea was it to do auth like this ... oh
git-svn-id: file:///svn/phpbb/trunk@515 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c47b0b03b1
commit
7d6c996092
1 changed files with 9 additions and 2 deletions
|
@ -179,6 +179,12 @@ function auth($type, $forum_id, $userdata, $f_access = -1)
|
|||
|
||||
$num_u_access = $db->sql_numrows($au_result);
|
||||
if($num_u_access)
|
||||
{
|
||||
if($forum_id != AUTH_LIST_ALL)
|
||||
{
|
||||
$u_access = $db->sql_fetchrowset($au_result);
|
||||
}
|
||||
else
|
||||
{
|
||||
while($u_row = $db->sql_fetchrow($au_result))
|
||||
{
|
||||
|
@ -186,6 +192,7 @@ function auth($type, $forum_id, $userdata, $f_access = -1)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$is_admin = ($userdata['user_level'] == ADMIN) ? 1 : 0;
|
||||
$auth_user = array();
|
||||
|
|
Loading…
Add table
Reference in a new issue