aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_users.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-08-12 15:10:43 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-08-12 15:10:43 +0000
commitf5cabf864c7bf29f5415a1ed315dc08b35f759c2 (patch)
tree95d5b785cdf2fd71096a21b91efef58068bcc161 /phpBB/includes/acp/acp_users.php
parentef71892edd1bb6b4e06fa207172ba8a3ee5f40b3 (diff)
downloadforums-f5cabf864c7bf29f5415a1ed315dc08b35f759c2.tar
forums-f5cabf864c7bf29f5415a1ed315dc08b35f759c2.tar.gz
forums-f5cabf864c7bf29f5415a1ed315dc08b35f759c2.tar.bz2
forums-f5cabf864c7bf29f5415a1ed315dc08b35f759c2.tar.xz
forums-f5cabf864c7bf29f5415a1ed315dc08b35f759c2.zip
bugfixes
git-svn-id: file:///svn/phpbb/trunk@6275 89ea8834-ac86-4346-8a33-228a782c2dd0
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