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
|
// 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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue