issue 1369 fixed

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10165 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-02-21 09:52:35 +00:00
parent 3e9a630811
commit 0a408c8e76

View file

@ -244,9 +244,17 @@
$oWidgetController->recompileWidget($content);
}
function procPageAdminArticleDocumentInsert(){
function procPageAdminArticleDocumentInsert()
{
$logged_info = Context::get('logged_info');
if ($logged_info->is_admin != 'Y')return new Object(-1, 'msg_not_permitted');
$oModuleModel = &getModel('module');
$grant = $oModuleModel->getGrant($this->module_info, $logged_info);
if (!$grant->manager)
{
return new Object(-1, 'msg_not_permitted');
}
$obj = Context::getRequestVars();
$obj->module_srl = $this->module_info->module_srl;