aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/mcp.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-05-26 18:13:53 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-05-26 18:13:53 +0000
commitafdf63150dc02cf5ae561d929ba4b11825732d69 (patch)
tree078c74bc244fb24d6cd61bb419ec811da3c9c664 /phpBB/mcp.php
parent2362a76b30d76fcfdf21d450fe346cc8c1e426bb (diff)
downloadforums-afdf63150dc02cf5ae561d929ba4b11825732d69.tar
forums-afdf63150dc02cf5ae561d929ba4b11825732d69.tar.gz
forums-afdf63150dc02cf5ae561d929ba4b11825732d69.tar.bz2
forums-afdf63150dc02cf5ae561d929ba4b11825732d69.tar.xz
forums-afdf63150dc02cf5ae561d929ba4b11825732d69.zip
update module authentification here too.
git-svn-id: file:///svn/phpbb/trunk@4888 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/mcp.php')
-rw-r--r--phpBB/mcp.php11
1 files 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)