mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-13 20:44:43 +01:00
Idiot
git-svn-id: file:///svn/phpbb/trunk@2858 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
832c29d3f5
commit
8e3bbcde6f
@ -378,7 +378,7 @@ class session {
|
||||
class acl
|
||||
{
|
||||
var $founder = false;
|
||||
var $acl = array();
|
||||
var $acl = false;
|
||||
|
||||
function acl(&$userdata, $forum_id = false, $extra_options = false)
|
||||
{
|
||||
@ -476,6 +476,8 @@ class acl
|
||||
}
|
||||
}
|
||||
|
||||
// print_r($this->acl);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -487,11 +489,11 @@ class acl
|
||||
}
|
||||
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]) )
|
||||
{
|
||||
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…
x
Reference in New Issue
Block a user