From 0dfa526665b5f6e170af89681981eb4662095a2d Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Fri, 6 Jan 2006 22:38:18 +0000 Subject: Fixing a permissions issue where a user only has local moderator rights. David - please test to make sure it works for you as well NB: There is still an outstanding issue on the queue module to be looked at later git-svn-id: file:///svn/phpbb/trunk@5432 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_module.php | 4 ++-- phpBB/includes/mcp/mcp_warn.php | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index b93aca2345..3932e4cdc8 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -251,8 +251,8 @@ class p_master } $is_auth = false; - eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#e', '#\$id#', '#cfg_([a-z_]+)#e'), array('(int) $auth->acl_get("\\1"\\2)', '$this->acl_forup_id', '(int) $config["\\1"]'), trim($module_auth)) . ');'); - + eval('$is_auth = (int) (' . preg_replace(array('#acl_([a-z_]+)(,\$id)?#', '#\$id#', '#cfg_([a-z_]+)#'), array('(int) $auth->acl_get("\\1"\\2)', '(int) $this->acl_forup_id', '(int) $config["\\1"]'), trim($module_auth)) . ');'); + return $is_auth; } diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php index 13d3e20e1a..ccb58f33a8 100755 --- a/phpBB/includes/mcp/mcp_warn.php +++ b/phpBB/includes/mcp/mcp_warn.php @@ -342,14 +342,6 @@ function mcp_warn_user_view($id, $mode, $action) $sql_where = ($user_id) ? "user_id = $user_id" : "username = '" . $db->sql_escape($username) . "'"; -/* $sql = 'SELECT * FROM ' . USERS_TABLE . " WHERE $sql_where"; - $result = $db->sql_query($sql); - - if (!$userrow = $db->sql_fetchrow($result)) - { - trigger_error($user->lang['NO_USER']); - } - $db->sql_freeresult($result);*/ $userrow = get_userdata($user_id); $user_id = $userrow['user_id']; -- cgit v1.2.1