mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
update module authentification here too.
git-svn-id: file:///svn/phpbb/trunk@4888 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -46,15 +46,8 @@ class module
|
||||
// Authorisation is required for the basic module
|
||||
if ($row['module_acl'])
|
||||
{
|
||||
$is_auth = FALSE;
|
||||
foreach (explode(',', $row['module_acl']) as $auth_option)
|
||||
{
|
||||
if ($auth->acl_get($auth_option))
|
||||
{
|
||||
$is_auth = TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$is_auth = false;
|
||||
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'])) . ');');
|
||||
|
||||
// The user is not authorised to use this module, skip it
|
||||
if (!$is_auth)
|
||||
|
Reference in New Issue
Block a user