* when check priv, convert to lowercase first.

This commit is contained in:
wangchunsheng
2010-01-08 04:25:01 +00:00
parent 6e700b8fa3
commit 6b2c0ba37a

View File

@@ -93,7 +93,7 @@ EOT;
/* <20>ǹ<EFBFBD><C7B9><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD>б<EFBFBD><D0B1><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>ڡ<EFBFBD>*/
$rights = $app->user->rights;
if(isset($rights[$module][$method])) return true;
if(isset($rights[strtolower($module)][strtolower($method)])) return true;
return false;
}