mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
update module authentification here too.
git-svn-id: file:///svn/phpbb/trunk@4888 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2362a76b30
commit
afdf63150d
1 changed files with 2 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue