fixed check module grant

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9624 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-10-13 02:04:38 +00:00
parent 28efdf9307
commit 289f077588
3 changed files with 9 additions and 6 deletions

View file

@ -135,11 +135,10 @@
$grant = $oModuleModel->getGrant($request_module, $logged_info);
}
} else {
$grant = $oModuleModel->getGrant($module_info, $logged_info, $xml_info);
// have at least access grant
if ($module_info->module == 'admin' || $this->module == $module_info->module)
$grant = $oModuleModel->getGrant($module_info, $logged_info, $xml_info);
else
$grant->access = 1;
if( substr_count($this->act, 'Member') || substr_count($this->act, 'Communication'))
$grant->access = 1;
}
// display no permission if the current module doesn't have an access privilege
//if(!$grant->access) return $this->stop("msg_not_permitted");