mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue fixed error site admin view
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8810 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
99b5d718e6
commit
f8f42bbe6e
1 changed files with 6 additions and 5 deletions
|
|
@ -278,17 +278,18 @@
|
|||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
|
||||
$grant = $oModuleModel->getGrant($forward, $logged_info, $xml_info);
|
||||
if($logged_info->is_admin=='Y') {
|
||||
$orig_module->makeGnbUrl($forward->module);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("layout.html");
|
||||
}elseif($grant->is_site_admin){
|
||||
if($grant->is_site_admin){
|
||||
$oSiteModel = &getModel('site');
|
||||
$output = $oSiteModel->getSiteAdminMenu($logged_info);
|
||||
Context::set('gnbUrlList', $output->menuList);
|
||||
Context::set('parentSrl', $output->parentSrl);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("site_admin_layout.html");
|
||||
}elseif($logged_info->is_admin=='Y'){
|
||||
$oAdminView = &getView('admin');
|
||||
$oAdminView->makeGnbUrl($forward->module);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("layout.html");
|
||||
}else{
|
||||
$this->error = 'msg_is_not_administrator';
|
||||
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue