mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Idiot
git-svn-id: file:///svn/phpbb/trunk@2858 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
832c29d3f5
commit
8e3bbcde6f
1 changed files with 5 additions and 3 deletions
|
@ -378,7 +378,7 @@ class session {
|
||||||
class acl
|
class acl
|
||||||
{
|
{
|
||||||
var $founder = false;
|
var $founder = false;
|
||||||
var $acl = array();
|
var $acl = false;
|
||||||
|
|
||||||
function acl(&$userdata, $forum_id = false, $extra_options = false)
|
function acl(&$userdata, $forum_id = false, $extra_options = false)
|
||||||
{
|
{
|
||||||
|
@ -476,6 +476,8 @@ class acl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// print_r($this->acl);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -487,11 +489,11 @@ class acl
|
||||||
}
|
}
|
||||||
else if ( $auth_main && $auth_type )
|
else if ( $auth_main && $auth_type )
|
||||||
{
|
{
|
||||||
return ( $this->get_acl(0, 'admin') ) ? true : ( ( $this->acl[$forum_id][$auth_main][$auth_type] ) ? true : false );
|
return $this->acl[$forum_id][$auth_main][$auth_type];
|
||||||
}
|
}
|
||||||
else if ( !$auth_type && is_array($this->acl[$forum_id][$auth_main]) )
|
else if ( !$auth_type && is_array($this->acl[$forum_id][$auth_main]) )
|
||||||
{
|
{
|
||||||
return ( $this->get_acl(0, 'admin') ) ? true : ( ( array_sum($this->acl[$forum_id][$auth_main]) ) ? true : false );
|
return array_sum($this->acl[$forum_id][$auth_main]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue