From 6b2c0ba37a9cfb34fe94f89e1cc4ca63af643bf1 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 8 Jan 2010 04:25:01 +0000 Subject: [PATCH] * when check priv, convert to lowercase first. --- trunk/module/common/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/module/common/control.php b/trunk/module/common/control.php index 32d05817f1..b65f2b75c9 100644 --- a/trunk/module/common/control.php +++ b/trunk/module/common/control.php @@ -93,7 +93,7 @@ EOT; /* 非管理员,则检查权限列表中是否存在。*/ $rights = $app->user->rights; - if(isset($rights[$module][$method])) return true; + if(isset($rights[strtolower($module)][strtolower($method)])) return true; return false; }