update module authentification here too.

git-svn-id: file:///svn/phpbb/trunk@4888 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2004-05-26 18:13:53 +00:00
parent 2362a76b30
commit afdf63150d

View file

@ -46,15 +46,8 @@ class module
// Authorisation is required for the basic module // Authorisation is required for the basic module
if ($row['module_acl']) if ($row['module_acl'])
{ {
$is_auth = FALSE; $is_auth = false;
foreach (explode(',', $row['module_acl']) as $auth_option) eval('$is_auth = (' . preg_replace(array('#acl_([a-z_]+)#e', '#cfg_([a-z_]+)#e'), array('(int) $auth->acl_get("\\1")', '(int) $config["\\1"]'), trim($row['module_acl'])) . ');');
{
if ($auth->acl_get($auth_option))
{
$is_auth = TRUE;
break;
}
}
// The user is not authorised to use this module, skip it // The user is not authorised to use this module, skip it
if (!$is_auth) if (!$is_auth)