From afdf63150dc02cf5ae561d929ba4b11825732d69 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Wed, 26 May 2004 18:13:53 +0000 Subject: [PATCH] update module authentification here too. git-svn-id: file:///svn/phpbb/trunk@4888 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/mcp.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/phpBB/mcp.php b/phpBB/mcp.php index b156e1b616..6750bde63a 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -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)