aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
-rw-r--r--phpBB/includes/acp/acp_users.php28
1 files changed, 7 insertions, 21 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index e74a830b0f..e658609c5f 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -14,6 +14,12 @@
class acp_users
{
var $u_action;
+ var $p_master;
+
+ function acp_users(&$p_master)
+ {
+ $this->p_master = &$p_master;
+ }
function main($id, $mode)
{
@@ -114,7 +120,7 @@ class acp_users
foreach ($forms_ary['modes'] as $value => $ary)
{
- if (!$this->is_authed($ary['auth']))
+ if (!$this->p_master->module_auth($ary['auth']))
{
continue;
}
@@ -1996,26 +2002,6 @@ class acp_users
$var = ($data) ? $data : $user_row['user_options'];
return ($var & 1 << $user->keyoptions[$key]) ? true : false;
}
-
- /**
- * Check if user is allowed to call this user mode
- */
- function is_authed($module_auth)
- {
- global $config, $auth;
-
- $module_auth = trim($module_auth);
-
- if (!$module_auth)
- {
- return true;
- }
-
- $is_auth = false;
- eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get("\\1"\\2)', 'true', '(int) $config["\\1"]'), $module_auth) . ');');
-
- return $is_auth;
- }
}
?> \ No newline at end of file